Skip to content

Commit

Permalink
gh actions setup
Browse files Browse the repository at this point in the history
  • Loading branch information
sweikenb committed Sep 29, 2023
1 parent 9130408 commit e3ccd62
Showing 1 changed file with 22 additions and 16 deletions.
38 changes: 22 additions & 16 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,33 @@ permissions:
contents: read

jobs:
build:

phpunit:
name: PHPUnit
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
strategy:
fail-fast: false
matrix:
php-version:
- "8.2"
dependency-versions:
- "lowest"
- "highest"

- name: Validate composer.json and composer.lock
run: composer validate --strict
steps:
- name: Checkout source
uses: actions/checkout@v3

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
php-version: ${{ matrix.php-version }}
coverage: none

- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Install composer dependencies
uses: ramsey/composer-install@v2
with:
dependency-versions: ${{ matrix.dependency-versions }}

- name: Run test suite
- name: Run test-suite
run: composer run-script phpunit

0 comments on commit e3ccd62

Please sign in to comment.