Remove unused tests #279
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: push | |
jobs: | |
test-8-3: | |
name: "Tests on PHP 8.3" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Log in to the Container registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup env | |
run: cp .github/workflows/.env .env | |
- name: Cache PHP 8.3 dependencies | |
id: cache-php-8-3-dependencies | |
uses: actions/cache@v3 | |
env: | |
cache-name: cache-php-8-3-dependencies | |
with: | |
path: | | |
~/.cache | |
vendor | |
key: ${{ runner.os }}-php-8-3-cache-${{ hashFiles('composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-php-8-3-cache-${{ hashFiles('composer.lock') }} | |
- name: Install | |
if: steps.cache-php-8-3-dependencies.outputs.cache-hit != 'true' | |
run: make install-8.3 | |
- name: Run PHP tests | |
run: make php-8.3-tests-ci | |
- name: Upload to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
fail_ci_if_error: true | |
files: ./coverage.xml | |
token: ${{ secrets.CODECOV_TOKEN }} | |
verbose: true | |
test-8-4: | |
name: "Tests on PHP 8.4" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Log in to the Container registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup env | |
run: cp .github/workflows/.env .env | |
- name: Cache PHP 8.4 dependencies | |
id: cache-php-8-4-dependencies | |
uses: actions/cache@v3 | |
env: | |
cache-name: cache-php-8-4-dependencies | |
with: | |
path: | | |
~/.cache | |
vendor | |
key: ${{ runner.os }}-php-8-4-cache-${{ hashFiles('composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-php-8-4-cache-${{ hashFiles('composer.lock') }} | |
- name: Install | |
if: steps.cache-php-8-4-dependencies.outputs.cache-hit != 'true' | |
run: make install-8.4 | |
- name: Run PHP tests | |
run: make php-8.4-tests-ci | |
mutation-testing: | |
name: "Mutation tests" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Log in to the Container registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup env | |
run: cp .github/workflows/.env .env | |
- name: Restore cache for PHP 8.3 dependencies | |
id: cache-php-8-3-dependencies | |
uses: actions/cache/restore@v3 | |
with: | |
path: | | |
~/.cache | |
vendor | |
key: ${{ runner.os }}-php-8-3-cache-${{ hashFiles('composer.lock') }} | |
- name: Install | |
if: steps.cache-php-8-4-dependencies.outputs.cache-hit != 'true' | |
run: make install-8.3 | |
- name: Run mutation testing | |
run: make php-mutation-testing-ci | |
code-validation: | |
name: "Code validation" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Log in to the Container registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup env | |
run: cp .github/workflows/.env .env | |
- name: Restore cache for PHP 8.3 dependencies | |
id: cache-php-8-3-dependencies | |
uses: actions/cache/restore@v3 | |
with: | |
path: | | |
~/.cache | |
vendor | |
key: ${{ runner.os }}-php-8-3-cache-${{ hashFiles('composer.lock') }} | |
- name: Install | |
if: steps.cache-php-8-3-dependencies.outputs.cache-hit != 'true' | |
run: make install-8.3 | |
- name: Run code validation | |
run: make php-code-validation |