Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit 455ac9e

Browse files
authored
Move to GitHub Actions
1 parent 1876701 commit 455ac9e

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/test.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
on: [push]
4+
5+
jobs:
6+
run:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
php-versions: ['7.2', '7.3', '7.4', '8.0']
11+
name: PHP ${{ matrix.php-versions }}
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
16+
- name: Setup PHP
17+
uses: shivammathur/setup-php@v2
18+
with:
19+
php-version: ${{ matrix.php-versions }}
20+
21+
- name: Get Composer Cache Directory
22+
id: composer-cache
23+
run: |
24+
echo "::set-output name=dir::$(composer config cache-files-dir)"
25+
- uses: actions/cache@v2
26+
with:
27+
path: ${{ steps.composer-cache.outputs.dir }}
28+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
29+
restore-keys: |
30+
${{ runner.os }}-composer-
31+
32+
- name: Install dependencies
33+
run: composer install --prefer-dist --dev
34+
35+
# - name: Run fixer
36+
# run: ./vendor/bin/php-cs-fixer fix --config=.php_cs_config.php -v --dry-run --stop-on-violation
37+
38+
- name: Run tests
39+
run: ./vendor/bin/phpunit

0 commit comments

Comments
 (0)