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

Commit

Permalink
Migrate TravisCI to Github Actions (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiodekker authored Nov 2, 2020
1 parent d9a0f3d commit 6d83555
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 29 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: tests

on:
push:
pull_request:
schedule:
- cron: '0 0 * * *'

jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php:
- 7.2
- 7.3
- 7.4
- 8.0
composerFlags:
- '--prefer-lowest'
- ''

name: PHP ${{ matrix.php }} w/ Composer ${{ matrix.composerFlags }}
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip
tools: composer:v2
coverage: none

- name: Install dependencies
run: |
composer update --prefer-dist --no-interaction --no-progress ${{ matrix.composerFlags }}
- name: Execute tests
run: vendor/bin/phpunit --verbose
26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<a href="https://github.com/ubient/laravel-pwned-passwords/releases">
<img src="https://img.shields.io/github/release/ubient/laravel-pwned-passwords.svg?style=flat-square" alt="Latest Version">
</a>
<a href="https://travis-ci.org/ubient/laravel-pwned-passwords">
<img src="https://img.shields.io/travis/ubient/laravel-pwned-passwords/master.svg?style=flat-square" alt="Build Status">
<a href="https://github.com/ubient/laravel-pwned-passwords/actions?query=workflow%3Atests+branch%3Amaster">
<img src="https://img.shields.io/github/workflow/status/ubient/laravel-pwned-passwords/tests/master.svg?style=flat-square" alt="Build Status">
</a>
<a href="https://scrutinizer-ci.com/g/ubient/laravel-pwned-passwords">
<img src="https://img.shields.io/scrutinizer/g/ubient/laravel-pwned-passwords.svg?style=flat-square" alt="Quality Score">
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}
],
"require": {
"php": "^7.2",
"php": "^7.2|^8.0",
"guzzlehttp/guzzle": "^6.3|^7.0.1",
"illuminate/contracts": "^5.8|^6.0|^7.0|^8.0",
"illuminate/support": "^5.8|^6.0|^7.0|^8.0"
Expand Down

0 comments on commit 6d83555

Please sign in to comment.