-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (46 loc) · 1.06 KB
/
test.yml
File metadata and controls
57 lines (46 loc) · 1.06 KB
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
50
51
52
53
54
55
56
57
name: test
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- master
pull_request:
paths-ignore:
- '**.md'
types:
- opened
- synchronize
- reopened
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
php-version:
- '8.4'
- '8.5'
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Pull
run: docker compose pull --quiet
- name: Build
run: docker compose build --build-arg PHPVERSION=${{ matrix.php-version }}
- name: Lint
if: matrix.php-version == '8.4'
run: docker compose run lib composer lint
- name: Test
run: docker compose run lib composer test
- name: Upload coverage
uses: codecov/codecov-action@v6
if: success()
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/clover.xml