feat: paginated the deleted endpoint and narrowed it to one type #42
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 | |
| # The checkout belongs to the runner, so the container writes to the bind mount | |
| # as `runner` rather than as the image's `deploy` user. | |
| env: | |
| COMPOSE_USER: runner | |
| jobs: | |
| changelog: | |
| runs-on: ubuntu-latest | |
| name: Changelog should be updated | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Git fetch | |
| run: git fetch | |
| - name: Check that changelog has been updated. | |
| run: git diff --exit-code origin/${{ github.base_ref }} -- CHANGELOG.md && exit 1 || exit 0 | |
| test: | |
| runs-on: ubuntu-latest | |
| name: Unit tests | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| # Tests run in the project's own compose stack, so the PHP version comes | |
| # from compose.yml rather than being repeated here. | |
| - name: Install dependencies | |
| run: docker compose run --rm --no-deps phpfpm composer install --no-interaction --prefer-dist --no-progress | |
| - name: Run tests | |
| run: docker compose run --rm --no-deps phpfpm vendor/bin/phpunit |