check formatting
This commit is contained in:
parent
df797745e6
commit
8871591cab
12
.github/workflows/test_and_publish.yml
vendored
12
.github/workflows/test_and_publish.yml
vendored
@ -7,6 +7,16 @@ on:
|
|||||||
- cron: '0 2 * * 0' # Weekly on Sundays at 02:00
|
- cron: '0 2 * * 0' # Weekly on Sundays at 02:00
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
format:
|
||||||
|
name: Format
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Check format
|
||||||
|
uses: zalexki/php-cs-fixer-action@master
|
||||||
|
|
||||||
test:
|
test:
|
||||||
name: PHP ${{ matrix.php }} / DB ${{ matrix.database }}
|
name: PHP ${{ matrix.php }} / DB ${{ matrix.database }}
|
||||||
strategy:
|
strategy:
|
||||||
@ -86,7 +96,7 @@ jobs:
|
|||||||
publish:
|
publish:
|
||||||
name: Publish
|
name: Publish
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: test
|
needs: [format, test]
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
|
Loading…
x
Reference in New Issue
Block a user