build(deps-dev): update phpunit/phpunit requirement from 11.5.0 to 11.5.1 #1948
Workflow file for this run
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
name: CI | |
on: | |
# Run tests for pull requests or pushes to the main branch | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
env: | |
# Use buildkit for faster builds | |
DOCKER_BUILDKIT: 1 | |
BUILDKIT_PROGRESS: plain | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout the source code | |
uses: actions/checkout@v4 | |
- name: Set up Docker buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build image | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
build-args: | | |
NO_DEV=0 | |
tags: local/smr:latest | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
phpunit: | |
name: PHPUnit | |
needs: build | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout the source code | |
uses: actions/checkout@v4 | |
with: | |
# Needed by Codecov | |
fetch-depth: 2 | |
- name: Set up Docker buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build image from cache | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
build-args: | | |
NO_DEV=0 | |
tags: local/smr:latest | |
cache-from: type=gha | |
load: true | |
- name: Setup test environment | |
run: composer start:test-services | |
- name: Run phpunit tests | |
run: composer phpunit | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v5 | |
with: | |
files: test/coverage/clover.xml | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: true | |
verbose: true | |
phpstan: | |
name: PHPStan | |
needs: build | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout the source code | |
uses: actions/checkout@v4 | |
- name: Set up Docker buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build image from cache | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
build-args: | | |
NO_DEV=0 | |
tags: local/smr:latest | |
cache-from: type=gha | |
load: true | |
- name: Run static analysis | |
run: composer phpstan | |
phpcs: | |
name: PHP_CodeSniffer | |
needs: build | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout the source code | |
uses: actions/checkout@v4 | |
- name: Set up Docker buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build image from cache | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
build-args: | | |
NO_DEV=0 | |
tags: local/smr:latest | |
cache-from: type=gha | |
load: true | |
- name: Run code sniffer | |
run: composer phpcs |