Skip to content

Instantly share code, notes, and snippets.

@osteel
Created February 6, 2022 13:11
Show Gist options
  • Save osteel/54ec1379790735d900560b0ba0b60fe2 to your computer and use it in GitHub Desktop.
Save osteel/54ec1379790735d900560b0ba0b60fe2 to your computer and use it in GitHub Desktop.
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
phpunit:
name: PHPUnit
runs-on: ubuntu-latest
strategy:
matrix:
php-version:
- "7.4"
- "8.0"
- "8.1"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: none
- name: Install composer dependencies
uses: "ramsey/composer-install@v1"
- name: Run PHPUnit
run: vendor/bin/phpunit tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment