-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (44 loc) · 1.16 KB
/
main.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Main
on: pull_request
env:
DATABASE_URL: "sqlite:///%kernel.project_dir%/var/data.db"
APP_ENV: test
jobs:
php-cs-fixer:
runs-on: ubuntu-latest
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
- uses: actions/checkout@v1
- run: |
composer install
./vendor/bin/php-cs-fixer fix --dry-run --diff
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
- uses: actions/checkout@v1
- run: composer install --no-interaction
- uses: actions/setup-node@v4
with:
node-version: 20.16
cache: 'npm'
- run: npm install
- run: npm run build
- run: |
./bin/console doctrine:database:create
./bin/console doctrine:schema:create
- run: ./vendor/bin/phpunit
# standard-js:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/setup-node@v4
# with:
# node-version: 20.16
# cache: 'npm'
# - run: npm install
# - run: npm run build
# - run: npm ci