1# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
2
3name: "CI"
4
5on:
6  pull_request:
7  push:
8    branches:
9      - "master"
10      - "development"
11      - "test"
12
13jobs:
14
15  tests:
16
17    name: "Tests"
18
19    runs-on: ${{ matrix.operating-system }}
20
21    strategy:
22      fail-fast: false
23      matrix:
24        php-version:
25          - "5.6"
26          - "7.0"
27          - "7.1"
28          - "7.2"
29          - "7.3"
30          - "7.4"
31          - "8.0"
32          - "8.1"
33        operating-system: [ubuntu-latest, windows-latest]
34
35    steps:
36      - name: "Checkout"
37        uses: "actions/checkout@v2"
38
39      - name: "Install PHP"
40        uses: "shivammathur/setup-php@v2"
41        with:
42          coverage: "none"
43          php-version: "${{ matrix.php-version }}"
44          extensions: "mbstring, gd, bcmath, bz2"
45          tools: composer:v2
46          ini-values: error_reporting=-1
47
48      - name: "Install dependencies"
49        run: "composer install --no-interaction --no-progress"
50
51      - name: "Tests"
52        run: composer test
53