Re-lint YAML files #117
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
pull_request: | |
name: Review | |
env: | |
COMPOSE_USER: root | |
jobs: | |
api-test: | |
name: API test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# https://taskfile.dev/installation/#github-actions | |
- uses: arduino/setup-task@v2 | |
- name: Start docker compose setup and install site | |
run: | | |
docker network create frontend | |
task --yes site:update | |
- name: Load test fixtures | |
run: | | |
task --yes fixtures:load:test | |
- name: Run API tests | |
run: | | |
task --yes api:test | |
code-analysis-phpstan: | |
runs-on: ubuntu-latest | |
name: PHPStan static analysis | |
steps: | |
- uses: actions/checkout@v4 | |
# https://taskfile.dev/installation/#github-actions | |
- uses: arduino/setup-task@v2 | |
- run: | | |
docker network create frontend | |
task --yes site:update | |
- name: Run code analysis | |
run: | | |
task --yes code-analysis:phpstan | |
apispec: | |
runs-on: ubuntu-latest | |
name: API specification validation | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
# https://taskfile.dev/installation/#github-actions | |
- uses: arduino/setup-task@v2 | |
- run: | | |
docker network create frontend | |
task --yes site:update | |
- name: Export API specification | |
run: | | |
task --yes api:spec:export | |
- name: Check for changes in specification | |
run: git diff --diff-filter=ACMRT --exit-code public/spec.yaml |