-
Notifications
You must be signed in to change notification settings - Fork 34
48 lines (40 loc) · 1.3 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: build
on: [pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
build:
name: 🧪 Test & lint
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
php-versions: ['8.0', '8.1', '8.2']
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # gives the commit message linter access to all previous commits
# - name: Commit lint
# if: ${{ matrix.php-versions == '8.0' }}
# uses: wagoid/commitlint-github-action@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: ast, mbstring, intl
ini-values: post_max_size=256M, max_execution_time=180
tools: composer:v2
- name: Deps
run: composer install --no-interaction
- name: Quality
if: matrix.php-versions == '8.0'
run: |
vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php -v --dry-run --stop-on-violation
vendor/bin/phan --no-progress-bar
- name: Test
env:
STREAM_API_KEY: ${{ secrets.STREAM_API_KEY }}
STREAM_API_SECRET: ${{ secrets.STREAM_API_SECRET }}
run: vendor/bin/phpunit