-
-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (40 loc) · 904 Bytes
/
Copy pathci-workflow.yml
File metadata and controls
44 lines (40 loc) · 904 Bytes
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
name: CI workflow
# Configure GitHub branch hooks
on:
push:
branches:
- master
paths-ignore:
- '**.md'
- 'docs/**'
pull_request:
branches:
- master
paths-ignore:
- '**.md'
- 'docs/**'
# Configure jobs
jobs:
build:
name: composer run ci
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ubuntu-20.04, ubuntu-18.04]
php-versions: ['7.4', '8.0']
steps:
# git clone
- name: Checkout project
uses: actions/checkout@v2
# composer install
- uses: php-actions/composer@v5
with:
php_version: ${{ matrix.php-versions }}
version: 2
# composer run ci
- uses: php-actions/composer@v5
with:
php_version: ${{ matrix.php-versions }}
version: 2
command: run ci