Skip to content

Commit

Permalink
Use GitHub actions instead of Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
chinleung committed Feb 22, 2021
1 parent dd4ce99 commit 662a99a
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 22 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: tests
on: [push, pull_request]

jobs:
tests:
name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: ['7.2', '7.3', '7.4', '8.0']
stability: [prefer-lowest, prefer-stable]

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, pcntl, pdo, sqlite, pdo_sqlite, gd, redis, memcached
tools: composer:v2
coverage: none

- name: Install dependencies
uses: nick-invision/retry@v1
with:
timeout_minutes: 5
max_attempts: 5
command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress

- name: Execute tests
run: vendor/bin/phpunit --colors --verbose

21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Laravel Multilingual Routes

[![Latest Version on Packagist](https://img.shields.io/packagist/v/chinleung/laravel-multilingual-routes.svg?style=flat-square)](https://packagist.org/packages/chinleung/laravel-multilingual-routes)
[![Build Status](https://img.shields.io/travis/chinleung/laravel-multilingual-routes/master.svg?style=flat-square)](https://travis-ci.org/chinleung/laravel-multilingual-routes)
[![Build Status](https://github.com/chinleung/laravel-multilingual-routes/workflows/tests/badge.svg?branch=v2)](https://github.com/chinleung/laravel-multilingual-routes/actions?query=workflow%3Atests)
[![Quality Score](https://img.shields.io/scrutinizer/g/chinleung/laravel-multilingual-routes.svg?style=flat-square)](https://scrutinizer-ci.com/g/chinleung/laravel-multilingual-routes)
[![Total Downloads](https://img.shields.io/packagist/dt/chinleung/laravel-multilingual-routes.svg?style=flat-square)](https://packagist.org/packages/chinleung/laravel-multilingual-routes)

Expand Down

0 comments on commit 662a99a

Please sign in to comment.