Skip to content

Commit 0dca292

Browse files
alexander-schranzdbu
authored andcommitted
Migrate to github actions
1 parent 055e297 commit 0dca292

File tree

2 files changed

+43
-29
lines changed

2 files changed

+43
-29
lines changed
+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Test application
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- 'master'
8+
9+
jobs:
10+
test:
11+
name: 'PHP ${{ matrix.php-version }} ${{ matrix.dependencies }}'
12+
runs-on: ubuntu-20.04
13+
env:
14+
SYMFONY_DEPRECATIONS_HELPER: weak
15+
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
include:
20+
- php-version: '7.2'
21+
dependencies: 'lowest'
22+
- php-version: '7.3'
23+
- php-version: '7.4'
24+
- php-version: '8.0'
25+
26+
steps:
27+
- name: Checkout project
28+
uses: actions/checkout@v2
29+
30+
- name: Install and configure PHP
31+
uses: shivammathur/setup-php@v2
32+
with:
33+
php-version: ${{ matrix.php-version }}
34+
tools: 'composer:v2'
35+
36+
- name: Install dependencies with Composer
37+
uses: ramsey/composer-install@v1
38+
with:
39+
dependency-versions: ${{ matrix.dependencies }}
40+
composer-options: --prefer-dist
41+
42+
- name: Execute test cases
43+
run: vendor/bin/phpunit

.travis.yml

-29
This file was deleted.

0 commit comments

Comments
 (0)