forked from bestit/flagception-sdk
-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (46 loc) · 1.45 KB
/
php.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
49
name: ci
on:
pull_request:
types: [opened, synchronize]
jobs:
build:
strategy:
matrix:
php: ['7.2','7.3','7.4','8.0', '8.1', '8.2']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer
coverage: false
- name: Install Dependencies
run: composer update --prefer-dist --no-interaction
- name: run tests
run: composer test
- name: run analyze
run: composer analyze
coverage:
strategy:
matrix:
php: ['8.3']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer
coverage: xdebug
- name: Install Dependencies
run: composer update --prefer-dist --no-interaction
- name: run tests
run: composer test
- name: run analyze
run: composer analyze
- name: Make code coverage badge
uses: timkrase/[email protected]
with:
coverage_badge_path: output/coverage.svg
push_badge: false