forked from Sylius/SyliusFlowBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1.27 KB
/
ci.yaml
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
40
41
42
43
44
name: CI
on: push
jobs:
test:
name: Test
strategy:
fail-fast: false
matrix:
php-version: [ '8.2' ]
runs-on: ubuntu-latest
steps:
# Setup
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: pcov
tools: cs2pr
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Cache Dependencies
uses: actions/cache@v1
with:
path: ~/.composer/cache
key: php-${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: |
php-${{ matrix.php-version }}-composer-
- name: Install Dependencies
run: composer install --no-interaction --no-ansi --no-progress
# Test
- name: Unit Tests
run: vendor/bin/phpspec run
- name: Psalm
run: vendor/bin/psalm --long-progress --stats --output-format=github