This commit is contained in:
Ralph J. Smit
2022-07-19 13:33:24 +02:00
parent 3048747ed6
commit a14d2c44a1
3 changed files with 8 additions and 20 deletions

View File

@@ -3,12 +3,12 @@ name: Run tests & build files
on:
push:
branches:
- main-prepare
- master
jobs:
test:
name: Run tests
uses: ploi-deploy/ploi-core/.github/workflows/run-tests.yml@main-prepare
uses: ploi-deploy/ploi-core/.github/workflows/run-tests.yml@master
deploy:
needs: test
@@ -31,16 +31,14 @@ jobs:
node-version: '12.x'
- run: npm install
- run: rm -f public/mix-manifest.json
- run: npm run prod --section=frontend
- run: npm run prod --section=admin
- run: npm run prod
- name: Commit build assets
run: |
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
git checkout -B main-files main-prepare
git add -f public/
git checkout -B master-files master
git commit -m "Run Laravel Mix en build front-end assets"
git checkout -B main
git merge main-files
git push -f origin main
git checkout -B master
git merge master-files
git push origin master

View File

@@ -8,17 +8,6 @@ jobs:
test:
name: PHPUnit
runs-on: ubuntu-latest
services:
mysql:
image: mysql:latest
env:
MYSQL_ALLOW_EMPTY_PASSWORD: false
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: XXX
ports:
- 3306/tcp
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- name: Checkout code
uses: actions/checkout@v2

View File

@@ -14,6 +14,7 @@
</testsuite>
</testsuites>
<php>
<server name="APP_KEY" value="AckfSECXIvnK5r28GVIWUAxmbBSjTsmF"/>
<server name="APP_ENV" value="testing"/>
<server name="BCRYPT_ROUNDS" value="4"/>
<server name="CACHE_DRIVER" value="array"/>