Skip to content
This repository was archived by the owner on Nov 9, 2024. It is now read-only.

Commit e932822

Browse files
authored
Merge pull request #28 from HellPat/matrix-checks
multi step
2 parents 23fd920 + d60c43b commit e932822

1 file changed

Lines changed: 28 additions & 36 deletions

File tree

.github/workflows/main.yaml

Lines changed: 28 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -4,48 +4,40 @@ on:
44
push:
55
merge_group:
66
jobs:
7-
style:
7+
# TODO: build container once, before running static-analysis
8+
static-analysis:
89
runs-on: ubuntu-latest
9-
defaults:
10-
run:
11-
shell: nix-shell --pure --run "bash -euxo pipefail {0}"
10+
defaults:
11+
run:
12+
shell: nix-shell --pure --run "bash -euxo pipefail {0}"
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
check:
17+
- vendor/bin/psalm --output-format=github
18+
- vendor/bin/ecs
19+
- bin/console lint:twig templates --no-interaction --format=github
20+
- bin/console lint:yaml . *.yaml --parse-tags --no-interaction --format=github
21+
- bin/console lint:container --no-interaction
22+
- bin/console lint:xliff translations --no-interaction --format=github
23+
- composer validate composer.json --no-check-publish
24+
- symfony security:check
25+
# TODO: add more ci-checks
26+
# vendor/bin/parallel-lint src public migrations config
27+
# XDEBUG_MODE=off bin/composer-require-checker --no-interaction --config-file=$PWD/composer-require-checker.json
28+
# vendor/bin/config-transformer --dry-run
29+
# bin/console debug:translation --all --only-missing en
30+
# vendor/bin/rector --dry-run
31+
# vendor/bin/phpstan -v --memory-limit=1G {{ if output == "github" { "--error-format=github" } else { "" } }}
32+
# cd .. && pnpm spectral lint openapi.yaml {{ if output == "github" { "--format=github-actions" } else { "" } }
1233
steps:
1334
- uses: actions/checkout@v4
1435
- uses: cachix/install-nix-action@v25
36+
# TODO: cache composer dependencies
37+
# TODO: check why --ignore-platform-req=ext-redis is needed
1538
- run: composer install --ignore-platform-req=ext-redis
16-
- run: vendor/bin/ecs
1739
- run: bin/console cache:warmup
18-
- run: bin/console lint:twig templates -n --format=github
19-
- run: composer validate composer.json --no-check-publish
20-
- run: symfony security:check
21-
# symfony security:check
22-
# vendor/bin/parallel-lint src public migrations config
23-
# composer validate composer.json --no-check-publish
24-
# XDEBUG_MODE=off bin/composer-require-checker --no-interaction --config-file=$PWD/composer-require-checker.json
25-
# vendor/bin/config-transformer --dry-run
26-
# bin/console lint:container -n
27-
# bin/console cache:warmup
28-
# bin/console lint:twig templates -n {{ if output == "github" { "--format=github" } else { "" } }}
29-
# bin/console lint:yaml . *.yaml --parse-tags -n {{ if output == "github" { "--format=github" } else { "" } }}
30-
# bin/console debug:translation --all --only-missing en
31-
# bin/console lint:xliff translations --no-interaction {{ if output == "github" { "--format=github" } else { "" } }}
32-
# vendor/bin/rector --dry-run
33-
# vendor/bin/php-cs-fixer fix --dry-run --diff
34-
# vendor/bin/psalm {{ if output == "github" { "--output-format=github" } else { "" } }}
35-
# vendor/bin/phpstan -v --memory-limit=1G {{ if output == "github" { "--error-format=github" } else { "" } }}
36-
# cd .. && pnpm spectral lint openapi.yaml {{ if output == "github" { "--format=github-actions" } else { "" } }}
37-
38-
psalm:
39-
runs-on: ubuntu-latest
40-
steps:
41-
- uses: actions/checkout@v4
42-
- uses: cachix/install-nix-action@v25
43-
- shell: nix-shell --pure --run "bash -euxo pipefail {0}"
44-
run: |
45-
# TODO: cache composer dependencies
46-
# TODO: check why --ignore-platform-req=ext-redis is needed
47-
composer install --ignore-platform-req=ext-redis
48-
vendor/bin/psalm --output-format=github
40+
- run: ${{ matrix.check }}
4941

5042
phpunit:
5143
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)