-
Notifications
You must be signed in to change notification settings - Fork 7
32 lines (30 loc) · 898 Bytes
/
test.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
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
name: Test
jobs:
build:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ ubuntu-18.04 ]
php: [ '7.2', '7.4', '8.0', '8.1' ]
include:
- operating-system: windows-2019
php: '7.2'
#operating-system: [ ubuntu-18.04, windows-2019 ]
#php: [ '7.2', '7.4', '8.0' ]
name: PHP ${{ matrix.php }}
steps:
- uses: actions/checkout@v3
- name: Setup PHP
uses: nanasess/setup-php@v3
with:
php-version: ${{ matrix.php }}
- name: Validate composer.json and composer.lock
run: composer validate
- name: Set example Git user
run: git config --global user.email "[email protected]" && git config --global user.name "Test Bot"
- run: ./scripts/test.sh