forked from o0h/php-ast-check-diff
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.13 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
name: CI
on:
push:
pull_request:
jobs:
supported-versions-matrix:
name: Supported Versions Matrix
runs-on: ubuntu-latest
outputs:
extensions: ${{ steps.supported-versions-matrix.outputs.extensions }}
version: ${{ steps.supported-versions-matrix.outputs.version }}
steps:
- uses: actions/checkout@v3
- id: supported-versions-matrix
uses: WyriHaximus/github-action-composer-php-versions-in-range@v1
tests:
name: PHP ${{ matrix.php }} Latest
runs-on: ubuntu-latest
needs:
- supported-versions-matrix
strategy:
matrix:
php: ${{ fromJson(needs.supported-versions-matrix.outputs.version) }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer
coverage: none
extensions: ${{ join(fromJson(needs.supported-versions-matrix.outputs.extensions), ',') }}
- name: Install dependencies
uses: ramsey/composer-install@v2
- name: Execute tests
run: composer test