-
Notifications
You must be signed in to change notification settings - Fork 24
48 lines (41 loc) · 1.31 KB
/
diagnostics.yml
File metadata and controls
48 lines (41 loc) · 1.31 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
name: Git php
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php: [5.6, 7.1, 7.2, 7.3, 7.4]
steps:
- name: PHP ${{ matrix.php }} Pull source
uses: actions/checkout@v2
with:
fetch-depth: 0
# see https://github.com/shivammathur/setup-php
- name: PHP ${{ matrix.php }} Setup PHP.
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
- name: PHP ${{ matrix.php }} Cache composer cache directory
uses: actions/cache@v1
env:
cache-name: composer-cache-dir
with:
path: ~/.cache/composer
key: ${{ runner.os }}-build-${{ env.cache-name }}
- name: PHP ${{ matrix.php }} Cache vendor directory
uses: actions/cache@v1
env:
cache-name: composer-vendor
with:
path: vendor
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
- name: PHP ${{ matrix.php }} Install composer dependencies
run: composer update --prefer-dist --no-interaction --no-suggest
- name: PHP ${{ matrix.php }} Run tests
run: ant -keep-going