Skip to content

Commit 6d774d5

Browse files
minor #722 Use GithubActions instead of Travis-CI (OskarStark)
This PR was squashed before being merged into the 1.9-dev branch. Discussion ---------- Use GithubActions instead of Travis-CI You can see the first run here: OskarStark#1 Closes OskarStark#1 Commits ------- 1c2cc17 Use GithubActions instead of Travis-CI
2 parents 781efaa + 1c2cc17 commit 6d774d5

File tree

2 files changed

+74
-42
lines changed

2 files changed

+74
-42
lines changed

.github/workflows/ci.yaml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: "CI"
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- 'main'
8+
9+
env:
10+
SYMFONY_PHPUNIT_DIR: "$HOME/symfony-bridge/.phpunit"
11+
12+
jobs:
13+
tests:
14+
name: "PHP ${{ matrix.php-version }} + ${{ matrix.dependencies }}"
15+
16+
runs-on: ubuntu-latest
17+
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
php-version:
22+
- '7.1'
23+
- '7.2'
24+
- '7.3'
25+
- '7.4'
26+
- '8.0'
27+
dependencies:
28+
- 'highest'
29+
include:
30+
- php-version: '7.1'
31+
dependencies: 'lowest'
32+
33+
steps:
34+
- name: "Checkout code"
35+
uses: actions/[email protected]
36+
37+
- name: "Install PHP with extensions"
38+
uses: shivammathur/[email protected]
39+
with:
40+
coverage: "none"
41+
php-version: ${{ matrix.php-version }}
42+
tools: composer:v2
43+
44+
- name: "Validate composer.json"
45+
run: "composer validate --strict --no-check-lock"
46+
47+
- name: "Add PHPUnit matcher"
48+
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
49+
50+
- run: composer require --no-update composer/composer:^1.0.2
51+
52+
- uses: "ramsey/composer-install@v1"
53+
with:
54+
dependency-versions: "${{ matrix.dependencies }}"
55+
56+
- name: "Install PHPUnit"
57+
run: vendor/bin/simple-phpunit install
58+
59+
- name: "PHPUnit version"
60+
run: vendor/bin/simple-phpunit --version
61+
62+
- run: vendor/bin/simple-phpunit
63+
64+
- run: composer require --no-update composer/composer:^2
65+
66+
- uses: "ramsey/composer-install@v1"
67+
with:
68+
dependency-versions: "${{ matrix.dependencies }}"
69+
70+
- run: vendor/bin/simple-phpunit
71+
72+
- if: matrix.php-version == '7.1'
73+
name: "Lint PHP files"
74+
run: find src/ -name '*.php' | xargs -n1 php -l

.travis.yml

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

0 commit comments

Comments
 (0)