-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (29 loc) · 1.01 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: crudBundle
on:
push:
branches: [ main ]
pull_request:
branches: [ main, develop ]
env:
DATABASE_URL: mysql://root:root@127.0.0.1:3306/crud_bundle
jobs:
phpunit:
runs-on: ubuntu-latest
steps:
- uses: shivammathur/setup-php@2cb9b829437ee246e9b3cac53555a39208ca6d28
with:
php-version: '8.1'
- uses: samin/mysql-action@v1.3
with:
mysql root password: root
- uses: actions/checkout@v2
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --prefer-dist
- name: Yarn
run: cd tests/App && yarn install && yarn dev
- name: Execute tests (Unit and Feature tests) via PHPUnit
run: vendor/bin/simple-phpunit
- name: Check Code Styles
run: vendor/bin/ecs
- name: Check PHP Stan
run: vendor/bin/phpstan analyse src tests