Skip to content

chore(main): increase type safety on countable #80

chore(main): increase type safety on countable

chore(main): increase type safety on countable #80

name: Run PHPUnit Tests
on:
push:
jobs:
php-tests:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Run
uses: styfle/cancel-workflow-action@0.6.0
with:
access_token: ${{ github.token }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.0"
coverage: none
- name: Checkout code
uses: actions/checkout@v2
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.testing.example', '.env');"
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install Composer dependencies
run: composer install --ignore-platform-reqs
- name: Run unit tests
run: ./vendor/bin/phpunit