-
Notifications
You must be signed in to change notification settings - Fork 61
76 lines (55 loc) · 1.86 KB
/
Copy pathintegrate.yaml
File metadata and controls
76 lines (55 loc) · 1.86 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# https://docs.github.com/en/actions
name: "Integrate"
on:
pull_request: null
push:
branches:
- "master"
jobs:
tests:
name: "Tests"
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
include:
- php-version: "7.2"
phpunit-version: "8.*"
- php-version: "7.3"
phpunit-version: "8.*"
- php-version: "7.3"
phpunit-version: "9.*"
- php-version: "7.4"
phpunit-version: "8.*"
- php-version: "7.4"
phpunit-version: "9.*"
- php-version: "8.0"
phpunit-version: "8.*"
- php-version: "8.0"
phpunit-version: "9.*"
- php-version: "8.1"
phpunit-version: "8.*"
- php-version: "8.1"
phpunit-version: "9.*"
steps:
- name: "Checkout"
uses: "actions/checkout@v2"
- name: "Set up PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"
- name: "Set up problem matchers for phpunit/phpunit"
run: "echo \"::add-matcher::${{ runner.tool_cache }}/phpunit.json\""
- name: "Determine composer cache directory"
run: "echo \"COMPOSER_CACHE_DIR=$(composer config cache-dir)\" >> $GITHUB_ENV"
- name: "Cache dependencies installed with composer"
uses: "actions/cache@v2"
with:
path: "${{ env.COMPOSER_CACHE_DIR }}"
key: "php-${{ matrix.php-version }}-composer-${{ matrix.phpunit-version }}"
restore-keys: "php-${{ matrix.php-version }}-composer-"
- name: "Require phpunit/phpunit ${{ matrix.phpunit-version }}"
run: "composer require phpunit/phpunit:${{ matrix.phpunit-version }}"
- name: "Run tests with phpunit/phpunit"
run: "vendor/bin/phpunit"