System upgrade #71
This file contains 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 | |
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables#defining-environment-variables-for-a-single-workflow | |
# (cf. services.phpfpm.user in ../../docker-compose.yml) | |
env: | |
COMPOSE_USER: root | |
jobs: | |
changelog: | |
runs-on: ubuntu-latest | |
name: Changelog should be updated | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- run: git fetch | |
- name: Check that changelog has been updated. | |
run: git diff --exit-code origin/${{ github.base_ref }} -- CHANGELOG.md | |
composer-validate: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
docker network create frontend | |
- run: | | |
docker compose run --rm phpfpm composer validate | |
composer-normalize: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
docker network create frontend | |
docker compose run --rm phpfpm composer install | |
- run: | | |
docker compose run --rm phpfpm composer normalize --dry-run | |
coding-standards: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
script: | |
- code-analysis | |
- coding-standards-check/php | |
- coding-standards-check/twig | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnorton5432/setup-task@v1 | |
- run: | | |
docker network create frontend | |
docker compose run --rm phpfpm composer install | |
- run: | | |
docker compose run --rm phpfpm composer ${{ matrix.script }} |