-
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (30 loc) · 827 Bytes
/
tests.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
34
35
36
37
38
39
name: Run CI
on: [push, pull_request]
jobs:
build:
name: CI
runs-on: ubuntu-latest
env:
contentful_space_id: ${{ secrets.CONTENTFUL_SPACE_ID }}
contentful_token: ${{ secrets.CONTENTFUL_TOKEN }}
strategy:
matrix:
php: ['8.1', '8.2']
steps:
- name: Checkout
uses: actions/checkout@v3
- name: PCOV
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: pcov
- name: Install dependencies
run: composer install --prefer-dist --dev
env:
COMPOSER_ROOT_VERSION: dev-master
- name: Run Psalm
run: ./vendor/bin/psalm --threads=2 --output-format=github --shepherd
- name: Run Phpunit
run: ./vendor/bin/phpunit
- name: Run Infection
run: ./vendor/bin/infection