Skip to content

Commit 2276575

Browse files
committed
added ga test
1 parent 2cc6b9b commit 2276575

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/test.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: "testing"
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
tests:
11+
name: Tests
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
php:
17+
- 7.2
18+
- 7.3
19+
- 7.4
20+
composer-args: [ "" ]
21+
include:
22+
- php: 8.0
23+
composer-args: --ignore-platform-reqs
24+
fail-fast: false
25+
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v2
29+
30+
- name: Install PHP
31+
uses: shivammathur/setup-php@v2
32+
with:
33+
php-version: ${{ matrix.php }}
34+
35+
- name: Cache PHP dependencies
36+
uses: actions/cache@v2
37+
with:
38+
path: vendor
39+
key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
40+
restore-keys: ${{ runner.os }}-php-${{ matrix.php }}-composer-
41+
42+
- name: Install dependencies
43+
run: composer install --prefer-dist --no-progress --no-suggest ${{ matrix.composer-args }}
44+
45+
- name: Tests
46+
run: composer test

0 commit comments

Comments
 (0)