Skip to content

Commit

Permalink
Bah
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoungportable committed Mar 7, 2024
1 parent 8517529 commit f94f1c7
Showing 1 changed file with 11 additions and 27 deletions.
38 changes: 11 additions & 27 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,21 @@
name: Tests
name: PHPUnit

on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]

jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
php: ['8.1']
pest: ['2.30']
dependency-version: [prefer-stable]
permissions:
contents: read

name: PHP ${{ matrix.php }} - ${{ matrix.os }} - Pest ${{ matrix.pest }} - ${{ matrix.dependency-version }}
jobs:
build:
runs-on: ubuntu-latest

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite, gd, pdo_mysql, fileinfo, ftp, redis, memcached, gmp, intl
tools: composer:v2
coverage: xdebug

- name: Install PHP dependencies
run: composer install

- name: Run Unit With Pest
run: ./vendor/bin/phpunit --stop-on-defect
- uses: actions/checkout@v3
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: PHPUnit
run: php vendor/bin/phpunit

0 comments on commit f94f1c7

Please sign in to comment.