Skip to content

Commit 8065186

Browse files
authored
Merge pull request #739 from laravel/github-actions
[5.x] Switch to Github Actions
2 parents 7abf5a7 + 5ea6982 commit 8065186

File tree

4 files changed

+63
-48
lines changed

4 files changed

+63
-48
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
.gitattributes export-ignore
77
.gitignore export-ignore
88
.styleci.yml export-ignore
9-
.travis.yml export-ignore
109
CHANGELOG.md
1110
phpunit.xml.dist export-ignore
1211
UPGRADE.md

.github/workflows/tests.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: '0 0 * * *'
8+
9+
jobs:
10+
tests:
11+
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: true
15+
matrix:
16+
php: [7.1, 7.2, 7.3, 7.4]
17+
laravel: [5.7.*, 5.8.*, ^6.0, ^7.0]
18+
phpunit: [^7.5, ^8.0]
19+
exclude:
20+
- php: 7.1
21+
laravel: 5.7.*
22+
phpunit: ^8.0
23+
- php: 7.1
24+
laravel: 5.8.*
25+
phpunit: ^8.0
26+
- php: 7.1
27+
laravel: ^6.0
28+
phpunit: ^7.5
29+
- php: 7.1
30+
laravel: ^6.0
31+
phpunit: ^8.0
32+
- php: 7.1
33+
laravel: ^7.0
34+
phpunit: ^7.5
35+
- php: 7.1
36+
laravel: ^7.0
37+
phpunit: ^8.0
38+
39+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - U${{ matrix.phpunit }}
40+
41+
steps:
42+
- name: Checkout code
43+
uses: actions/checkout@v2
44+
45+
- name: Cache dependencies
46+
uses: actions/cache@v1
47+
with:
48+
path: ~/.composer/cache/files
49+
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.phpunit }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
50+
51+
- name: Setup PHP
52+
uses: shivammathur/setup-php@v2
53+
with:
54+
php-version: ${{ matrix.php }}
55+
extensions: dom, curl, libxml, mbstring, zip
56+
coverage: none
57+
58+
- name: Install dependencies
59+
run: composer require "illuminate/contracts=${{ matrix.laravel }}" "phpunit/phpunit:${{ matrix.phpunit }}" --dev --prefer-dist --no-interaction --no-suggest
60+
61+
- name: Execute tests
62+
run: vendor/bin/phpunit --verbose

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<p align="center"><img src="https://laravel.com/assets/img/components/logo-dusk.svg"></p>
22

33
<p align="center">
4-
<a href="https://travis-ci.org/laravel/dusk"><img src="https://travis-ci.org/laravel/dusk.svg" alt="Build Status"></a>
4+
<a href="https://github.com/laravel/dusk/actions"><img src="https://github.com/laravel/dusk/workflows/tests/badge.svg" alt="Build Status"></a>
55
<a href="https://packagist.org/packages/laravel/dusk"><img src="https://poser.pugx.org/laravel/dusk/d/total.svg" alt="Total Downloads"></a>
66
<a href="https://packagist.org/packages/laravel/dusk"><img src="https://poser.pugx.org/laravel/dusk/v/stable.svg" alt="Latest Stable Version"></a>
77
<a href="https://packagist.org/packages/laravel/dusk"><img src="https://poser.pugx.org/laravel/dusk/license.svg" alt="License"></a>

0 commit comments

Comments
 (0)