-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (38 loc) · 1.15 KB
/
qa.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
name: QA
on:
push:
branches: [main]
pull_request:
jobs:
php:
name: PHP ${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
matrix:
php: ["8.3"]
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
tools: cs2pr
- uses: ramsey/composer-install@v2
- run: composer php-cs-fixer -- --dry-run --format=checkstyle | cs2pr
- run: composer phpstan -- --error-format=checkstyle | cs2pr
- run: composer rector -- --dry-run
- run: composer normalize --dry-run
node:
name: Node ${{ matrix.node }}
runs-on: ubuntu-latest
strategy:
matrix:
node: ["20.x"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- uses: bahmutov/npm-install@v1
- run: npm run lint
- run: npm run build