-
-
Notifications
You must be signed in to change notification settings - Fork 14
65 lines (60 loc) · 1.58 KB
/
main.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: "build"
on:
pull_request:
paths-ignore:
- ".docs/**"
push:
branches:
- "*"
schedule:
- cron: "0 8 * * 1" # At 08:00 on Monday
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
php: [ '7.4', '8.0', '8.1' ]
latte: [ '', '--prefer-lowest' ]
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl, iconv, json, mbstring, tokenizer
coverage: none
- run: composer install --no-interaction
- run: composer update latte/latte ${{ matrix.latte }} --no-interaction
- run: make tests
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
extensions: curl, iconv, json, mbstring, tokenizer
coverage: pcov
- run: composer install --no-interaction
- run: make coverage-clover
- uses: codecov/codecov-action@v1
phpstan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
coverage: none
- run: composer install --no-interaction
- run: make phpstan
coding-standard:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
coverage: none
- run: composer install --no-interaction
- run: make cs