Skip to content

Commit

Permalink
Update pre-release.yml
Browse files Browse the repository at this point in the history
Add tests and automatic deploy
  • Loading branch information
lszeremeta authored Apr 18, 2021
1 parent 7a08a6d commit a0c8127
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,77 @@ on:
- "master"

jobs:
test:
runs-on: ubuntu-latest
services:
megen:
image: php:8-apache
ports:
- 80:80
volumes:
- ${{ github.workspace }}:/var/www/html/
steps:
- uses: actions/checkout@v2
- name: Run JMeter Tests
uses: rbhadti94/[email protected]
with:
testFilePath: tests/all.jmx
outputReportsFolder: reports/
- uses: actions/upload-artifact@v1
with:
name: jmeter-test-results
path: reports/


pre-release:
name: "Pre Release"
runs-on: "ubuntu-latest"
needs: test

steps:
- name: Turnstyle
uses: softprops/turnstyle@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create pre-release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "beta"
prerelease: true
title: "Development Build"


beta-deploy:
name: Beta deploy
runs-on: ubuntu-latest
needs: test

steps:
- name: Get latest code
uses: actions/checkout@v2
- name: Turnstyle
uses: softprops/turnstyle@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Sync files
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME_BETA }}
password: ${{ secrets.FTP_PASSWORD_BETA }}
protocol: ftps
exclude: .git*
- .git*/**
- **/.git*/**
- .dockerignore
- logo/raw-svg
- logo/raw-svg/*
- logo/megen.png
- Dockerfile
- tests
- tests/*
- LICENSE
- README.md
- stack.yml
security: strict

0 comments on commit a0c8127

Please sign in to comment.