Skip to content

Commit

Permalink
[Build] Use Github actions to run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lindyhopchris committed Feb 2, 2021
1 parent 4dc32e6 commit 03ab622
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 18 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Tests

on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: ['7.4', '8.0']
laravel: ['^8.0']

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
tools: composer:v2
coverage: none

- name: Set Laravel Version
run: composer require "laravel/framework:${{ matrix.laravel }}" --no-update -n

- name: Install dependencies
uses: nick-invision/retry@v1
with:
timeout_minutes: 5
max_attempts: 5
command: composer install --no-suggest --prefer-dist -n -o

- name: Execute tests
run: vendor/bin/phpunit
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

0 comments on commit 03ab622

Please sign in to comment.