Skip to content

Commit ddead9c

Browse files
authored
Merge pull request #79 from localheinz/feature/github-actions
Enhancement: Switch from Travis CI to GitHub Actions
2 parents 434865f + abb887f commit ddead9c

File tree

3 files changed

+77
-42
lines changed

3 files changed

+77
-42
lines changed

.github/workflows/integrate.yaml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# https://docs.github.com/en/actions
2+
3+
name: "Integrate"
4+
5+
on:
6+
pull_request: null
7+
push:
8+
branches:
9+
- "master"
10+
11+
jobs:
12+
tests:
13+
name: "Tests"
14+
15+
runs-on: "ubuntu-latest"
16+
17+
strategy:
18+
fail-fast: false
19+
20+
matrix:
21+
include:
22+
- php-version: "7.1"
23+
phpunit-version: "7.*"
24+
25+
- php-version: "7.2"
26+
phpunit-version: "7.*"
27+
28+
- php-version: "7.2"
29+
phpunit-version: "8.*"
30+
31+
- php-version: "7.3"
32+
phpunit-version: "8.*"
33+
34+
- php-version: "7.3"
35+
phpunit-version: "9.*"
36+
37+
- php-version: "7.4"
38+
phpunit-version: "8.*"
39+
40+
- php-version: "7.4"
41+
phpunit-version: "9.*"
42+
43+
- php-version: "8.0"
44+
phpunit-version: "8.*"
45+
46+
- php-version: "8.0"
47+
phpunit-version: "9.*"
48+
49+
steps:
50+
- name: "Checkout"
51+
uses: "actions/checkout@v2"
52+
53+
- name: "Set up PHP"
54+
uses: "shivammathur/setup-php@v2"
55+
with:
56+
coverage: "none"
57+
php-version: "${{ matrix.php-version }}"
58+
59+
- name: "Set up problem matchers for phpunit/phpunit"
60+
run: "echo \"::add-matcher::${{ runner.tool_cache }}/phpunit.json\""
61+
62+
- name: "Determine composer cache directory"
63+
run: "echo \"COMPOSER_CACHE_DIR=$(composer config cache-dir)\" >> $GITHUB_ENV"
64+
65+
- name: "Cache dependencies installed with composer"
66+
uses: "actions/cache@v2"
67+
with:
68+
path: "${{ env.COMPOSER_CACHE_DIR }}"
69+
key: "php-${{ matrix.php-version }}-composer-${{ matrix.phpunit-version }}"
70+
restore-keys: "php-${{ matrix.php-version }}-composer-"
71+
72+
- name: "Require phpunit/phpunit ${{ matrix.phpunit-version }}"
73+
run: "composer require phpunit/phpunit:${{ matrix.phpunit-version }}"
74+
75+
- name: "Run tests with phpunit/phpunit"
76+
run: "vendor/bin/phpunit"

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# phpunit-speedtrap
22

3-
[![Build Status](https://travis-ci.org/johnkary/phpunit-speedtrap.svg?branch=master)](https://travis-ci.org/johnkary/phpunit-speedtrap)
3+
[![Integrate](https://github.com/johnkary/phpunit-speedtrap/workflows/Integrate/badge.svg?branch=master)](https://github.com/johnkary/phpunit-speedtrap/actions)
44

55
SpeedTrap reports on slow-running PHPUnit tests right in the console.
66

0 commit comments

Comments
 (0)