Skip to content

Commit fcd37f9

Browse files
Migrate travis to github actions (#261)
* Migrate travis to github actions
1 parent 14fb776 commit fcd37f9

File tree

2 files changed

+62
-58
lines changed

2 files changed

+62
-58
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: "Test application"
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- "master"
8+
- "[0-9]+.x"
9+
- "[0-9]+.[0-9]+"
10+
- "[0-9]+.[0-9]+.x"
11+
12+
jobs:
13+
test:
14+
name: "PHP ${{ matrix.php-version }}, Symfony ${{ matrix.symfony-require }} ${{ matrix.dependencies }}"
15+
runs-on: "ubuntu-20.04"
16+
env:
17+
SYMFONY_DEPRECATIONS_HELPER: weak
18+
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
include:
23+
- php-version: "7.2"
24+
dependencies: "lowest"
25+
symfony-require: "4.4.*"
26+
27+
- php-version: "7.4"
28+
symfony-require: "4.4.*"
29+
30+
- php-version: "7.4"
31+
symfony-require: "5.0.*"
32+
33+
- php-version: "8.0"
34+
symfony-require: "*"
35+
36+
steps:
37+
- name: "Checkout project"
38+
uses: "actions/checkout@v2"
39+
40+
- name: "Install and configure PHP"
41+
uses: "shivammathur/setup-php@v2"
42+
with:
43+
php-version: "${{ matrix.php-version }}"
44+
extensions: "pdo, pdo_sqlite"
45+
tools: "composer:v2"
46+
47+
- name: "Require Specific Symfony Version"
48+
if: "${{ matrix.symfony-version }}"
49+
run: "composer require --no-update symfony/symfony:${{ matrix.symfony-version }}"
50+
51+
- name: "Install dependencies with Composer"
52+
uses: "ramsey/composer-install@v1"
53+
with:
54+
dependency-versions: "${{ matrix.dependencies }}"
55+
composer-options: "--prefer-dist"
56+
57+
- name: "Execute test cases"
58+
run: |
59+
if [[ $SYMFONY_PHPUNIT_VERSION == '' ]]; then unset SYMFONY_PHPUNIT_VERSION; fi;
60+
make test
61+
env:
62+
SYMFONY_PHPUNIT_VERSION: "${{ matrix.phpunit-version }}"

.travis.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)