-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (45 loc) · 1.41 KB
/
continuous-integration.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
name: "Continuous Integration"
on:
pull_request:
push:
branches:
- '[0-9]+.[0-9]+.x'
tags:
jobs:
ci:
uses: laminas/workflow-continuous-integration/.github/workflows/continuous-integration.yml@1.x
coverage:
name: PHPUnit Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- uses: shivammathur/setup-php@2.28.0
with:
php-version: 8.1
extensions: pcov
coverage: pcov
ini-values: pcov.enabled=1
- uses: "ramsey/composer-install@2.2.0"
- run: php ./vendor/bin/phpunit --coverage-clover=coverage.xml
env:
PRISMIC_REPO: ${{ secrets.PRISMIC_REPO }}
PRISMIC_TOKEN: ${{ secrets.PRISMIC_TOKEN }}
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
fail_ci_if_error: false
composer-require-checker:
name: "Check for missing dependencies"
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4.1.1
- uses: shivammathur/setup-php@2.28.0
with:
php-version: 8.1
- uses: "ramsey/composer-install@2.2.0"
with:
dependency-versions: "highest"
- run: composer global config bin-dir /usr/local/bin
- run: composer global require -W maglnet/composer-require-checker
- run: /usr/local/bin/composer-require-checker check