-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (66 loc) · 1.9 KB
/
ci.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
66
67
68
69
70
71
72
73
74
75
76
name: CI
on:
push:
branches: main
pull_request:
branches: main
jobs:
build-test:
runs-on: ubuntu-latest
permissions:
packages: write
timeout-minutes: 10
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
php_version: ["7.3", "7.4", "8.0"]
experimental: [false]
include:
- php_version: "8.1"
experimental: true
steps:
- name: Check out repository code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Cache Fuseki installation
uses: actions/cache@v2
with:
path: tests/apache-jena-fuseki-*
key: fuseki-${{ hashFiles('tests/init_fuseki.sh') }}
- name: Start up Fuseki
run: cd tests; sh ./init_fuseki.sh
- name: Cache Composer dependencies
uses: actions/cache@v2
with:
path: |
/tmp/composer-cache
vendor
components
key: ${{ runner.os }}-php${{ matrix.php_version}}-${{ hashFiles('**/composer.json') }}
restore-keys: |
${{ runner.os }}-php${{ matrix.php_version}}-
- name: Install Composer dependencies
uses: php-actions/composer@v5
with:
php_version: ${{ matrix.php_version }}
php_extensions: gettext intl xsl pcov
- name: Run PHPUnit tests
uses: php-actions/phpunit@v3
env:
LANGUAGE: fr
with:
version: 9.5
php_version: ${{ matrix.php_version }}
php_extensions: gettext intl xsl pcov
memory_limit: 512M
configuration: phpunit.xml
- name: Publish code coverage to Code Climate
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: fb98170a5c7ea9cc2bbab19ff26268335e6a11a4f8267ca935e5e8ff4624886c
with:
prefix: /app
- name: Publish code coverage to Codecov
uses: codecov/codecov-action@v1