-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (31 loc) · 924 Bytes
/
php.yml
File metadata and controls
45 lines (31 loc) · 924 Bytes
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
name: Run tests
on: [push]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [7.4, 8.3]
container: ghcr.io/bulkgate/plugin:${{ matrix.php-version }}
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Run test suite
run: composer run tester
- name: Run phpstan
run: composer run phpstan
coverage:
runs-on: ubuntu-latest
container: ghcr.io/bulkgate/plugin:8.3
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Run test suite
run: composer run coverage
- name: Upload coverage
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: coverage.html