-
Notifications
You must be signed in to change notification settings - Fork 13
33 lines (29 loc) · 896 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: CI
on:
push:
branches:
- master
pull_request:
concurrency:
# Concurrency is only limited on pull requests. head_ref is only defined on PR triggers otherwise it will use the random run id and always build all pushes.
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: read
jobs:
phpunit-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version: ["8.1", "8.2"]
steps:
- uses: actions/checkout@v3
- name: Installing PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: Composer Install
run: composer install --optimize-autoloader
- name: PHPUnit
run: ./vendor/bin/phpunit -c ./phpunit.xml.dist --exclude-group="large"