Skip to content

Commit 23290a9

Browse files
authored
Create Actions workflow
1 parent c859072 commit 23290a9

File tree

1 file changed

+44
-0
lines changed
  • .github/workflows

1 file changed

+44
-0
lines changed

.github/workflows/test

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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+
- 8.0
21+
- 8.1
22+
fail-fast: false
23+
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v2
27+
28+
- name: Install PHP
29+
uses: shivammathur/setup-php@v2
30+
with:
31+
php-version: ${{ matrix.php }}
32+
33+
- name: Cache PHP dependencies
34+
uses: actions/cache@v2
35+
with:
36+
path: vendor
37+
key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
38+
restore-keys: ${{ runner.os }}-php-${{ matrix.php }}-composer-
39+
40+
- name: Install dependencies
41+
run: composer install --prefer-dist --no-progress --no-suggest
42+
43+
- name: Tests
44+
run: composer test

0 commit comments

Comments
 (0)