8000 minor #96 Run PHPUnit on GitHub Actions (derrabus) · symfony/symfony@f12a9e6 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f12a9e6

Browse files
committed
minor #96 Run PHPUnit on GitHub Actions (derrabus)
This PR was merged into the 2.1-dev branch. Discussion ---------- Run PHPUnit on GitHub Actions Travis doesn't run any tests at the moment, so let's switch to GitHub actions on this repo as well. Commits ------- ab64c69 Run PHPUnit on GitHub Actions
2 parents c901299 + ab64c69 commit f12a9e6

File tree

2 files changed

+48
-53
lines changed

2 files changed

+48
-53
lines changed

.github/workflows/ci.yml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
7+
jobs:
8+
test:
9+
name: 'Test ${{ matrix.deps }} on PHP ${{ matrix.php }}'
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
php: ['7.1.3', '7.2', '7.3', '7.4', '8.0']
16+
include:
17+
- php: '7.4'
18+
deps: lowest
19+
deprecations: max[self]=0
20+
- php: '8.0'
21+
deps: highest
22+
23+
steps:
24+
- name: Checkout code
25+
uses: actions/checkout@v2
26+
27+
- name: Setup PHP
28+
uses: shivammathur/setup-php@v2
29+
with:
30+
php-version: '${{ matrix.php }}'
31+
coverage: none
32+
33+
- name: Configure composer
34+
if: "${{ matrix.deps == 'highest' }}"
35+
run: composer config minimum-stability dev
36+
37+
- name: Composer install
38+
uses: ramsey/composer-install@v1
39+
with:
40+
dependency-versions: '${{ matrix.deps }}'
41+
42+
- name: Install PHPUnit
43+
run: vendor/bin/simple-phpunit install
44+
45+
- name: Run tests
46+
run: vendor/bin/simple-phpunit
47+
env:
48+
SYMFONY_DEPRECATIONS_HELPER: '${{ matrix.deprecations }}'

.travis.yml

-53
This file was deleted.

0 commit comments

Comments
 (0)
0