Skip to content

Commit 35d569f

Browse files
committed
Add GitHub Actions CI config
1 parent ebe542b commit 35d569f

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

.github/workflows/ci.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
build:
8+
name: Test
9+
runs-on: ubuntu-latest
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
php: [ '7.2', '7.3', '7.4', '8.0', '8.1' ]
14+
strategy: [ 'highest' ]
15+
sf_version: ['']
16+
include:
17+
- php: 7.4
18+
strategy: 'lowest'
19+
- php: 7.3
20+
sf_version: '4.*'
21+
22+
steps:
23+
- name: Checkout code
24+
uses: actions/checkout@v2
25+
26+
- name: Set up PHP
27+
uses: shivammathur/setup-php@v2
28+
with:
29+
php-version: ${{ matrix.php }}
30+
coverage: none
31+
tools: flex
32+
33+
- name: Download dependencies
34+
uses: ramsey/composer-install@v1
35+
env:
36+
SYMFONY_REQUIRE: ${{ matrix.sf_version }}
37+
with:
38+
dependency-versions: ${{ matrix.strategy }}
39+
composer-options: --no-interaction --prefer-dist --optimize-autoloader
40+
41+
- name: Install PHPUnit
42+
run: ./vendor/bin/simple-phpunit install
43+
44+
- name: Run tests
45+
run: ./vendor/bin/simple-phpunit

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/.phpunit.result.cache
12
/behat.yml
23
/build/
34
/composer.lock

0 commit comments

Comments
 (0)