Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.

Commit 6d83555

Browse files
Migrate TravisCI to Github Actions (#19)
1 parent d9a0f3d commit 6d83555

File tree

4 files changed

+45
-29
lines changed

4 files changed

+45
-29
lines changed

.github/workflows/tests.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: '0 0 * * *'
8+
9+
jobs:
10+
tests:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: true
14+
matrix:
15+
php:
16+
- 7.2
17+
- 7.3
18+
- 7.4
19+
- 8.0
20+
composerFlags:
21+
- '--prefer-lowest'
22+
- ''
23+
24+
name: PHP ${{ matrix.php }} w/ Composer ${{ matrix.composerFlags }}
25+
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v2
28+
29+
- name: Setup PHP
30+
uses: shivammathur/setup-php@v2
31+
with:
32+
php-version: ${{ matrix.php }}
33+
extensions: dom, curl, libxml, mbstring, zip
34+
tools: composer:v2
35+
coverage: none
36+
37+
- name: Install dependencies
38+
run: |
39+
composer update --prefer-dist --no-interaction --no-progress ${{ matrix.composerFlags }}
40+
41+
- name: Execute tests
42+
run: vendor/bin/phpunit --verbose

.travis.yml

-26
This file was deleted.

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<a href="https://github.com/ubient/laravel-pwned-passwords/releases">
55
<img src="https://img.shields.io/github/release/ubient/laravel-pwned-passwords.svg?style=flat-square" alt="Latest Version">
66
</a>
7-
<a href="https://travis-ci.org/ubient/laravel-pwned-passwords">
8-
<img src="https://img.shields.io/travis/ubient/laravel-pwned-passwords/master.svg?style=flat-square" alt="Build Status">
7+
<a href="https://github.com/ubient/laravel-pwned-passwords/actions?query=workflow%3Atests+branch%3Amaster">
8+
<img src="https://img.shields.io/github/workflow/status/ubient/laravel-pwned-passwords/tests/master.svg?style=flat-square" alt="Build Status">
99
</a>
1010
<a href="https://scrutinizer-ci.com/g/ubient/laravel-pwned-passwords">
1111
<img src="https://img.shields.io/scrutinizer/g/ubient/laravel-pwned-passwords.svg?style=flat-square" alt="Quality Score">

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
}
2222
],
2323
"require": {
24-
"php": "^7.2",
24+
"php": "^7.2|^8.0",
2525
"guzzlehttp/guzzle": "^6.3|^7.0.1",
2626
"illuminate/contracts": "^5.8|^6.0|^7.0|^8.0",
2727
"illuminate/support": "^5.8|^6.0|^7.0|^8.0"

0 commit comments

Comments
 (0)