This commit is contained in:
Dennis
2023-01-28 20:04:55 +01:00
parent c67546b949
commit 604b535895

View File

@@ -1,41 +1,41 @@
name: Run tests & build files
on:
push:
branches:
- master
jobs:
test:
name: Run tests
uses: ./.github/workflows/run-tests.yml
deploy:
needs: test
name: Prepare build assets
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
extensions: pcntl
- run: composer install
name: Install dependencies
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: '16.x'
- run: npm install
- run: npm run production:all
- name: Commit build assets
run: |
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
git add .
git commit -m "Updated build assets"
git push origin
#name: Run tests & build files
#
#on:
# push:
# branches:
# - master
#
#jobs:
# test:
# name: Run tests
# uses: ./.github/workflows/run-tests.yml
#
# deploy:
# needs: test
# name: Prepare build assets
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Setup PHP with PECL extension
# uses: shivammathur/setup-php@v2
# with:
# php-version: '8.1'
# extensions: pcntl
#
# - run: composer install
# name: Install dependencies
#
# - name: Set up Node
# uses: actions/setup-node@v1
# with:
# node-version: '16.x'
# - run: npm install
# - run: npm run production:all
#
# - name: Commit build assets
# run: |
# git config --local user.email "actions@github.com"
# git config --local user.name "GitHub Actions"
# git add .
# git commit -m "Updated build assets"
# git push origin