Skip to content

Commit

Permalink
Update test runner
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmellor committed Aug 20, 2023
1 parent a24760e commit 1fed3be
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 54 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/run-pest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: "Run Pest"

on: pull_request

jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [ 8.1, 8.2 ]
stability: [ prefer-lowest, prefer-stable ]

name: "PHP: v${{ matrix.php }}"

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
coverage: none

- name: Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install dependencies
run: |
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: Execute tests
run: vendor/bin/pest
54 changes: 0 additions & 54 deletions .github/workflows/run-tests.yml

This file was deleted.

0 comments on commit 1fed3be

Please sign in to comment.