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

View File

@@ -8,17 +8,6 @@ jobs:
test: test:
name: PHPUnit name: PHPUnit
runs-on: ubuntu-latest 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: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 uses: actions/checkout@v2

View File

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