Merge pull request #37 from code-lts/backports #1
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: Run phpunit tests | |
permissions: | |
contents: read | |
on: [push] | |
jobs: | |
test-php: | |
name: Test on php ${{ matrix.php-version }} and ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
php-version: ["8.1", "8.2", "8.3"] | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use php ${{ matrix.php-version }} | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
- name: Cache module | |
uses: actions/cache@v3 | |
with: | |
path: ~/.composer/cache/ | |
key: composer-cache | |
- name: Install dependencies | |
run: composer install --no-interaction | |
- name: Run php tests | |
run: ./vendor/bin/phpunit |