Skip to content

Commit

Permalink
Merge pull request #81 from emielmolenaar/feat-github-actions
Browse files Browse the repository at this point in the history
Adding Github actions
  • Loading branch information
barryvdh authored Jun 2, 2021
2 parents e928d5a + 9721800 commit 99d5ad4
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 34 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Unit Tests

on:
push:
branches:
- master
pull_request:
branches:
- "*"
schedule:
- cron: '0 0 * * *'

jobs:
php-tests:
runs-on: ubuntu-latest
timeout-minutes: 15
env:
COMPOSER_NO_INTERACTION: 1

strategy:
matrix:
php: [8.0, 7.4, 7.3]
dependency-version: [prefer-lowest, prefer-stable]

name: P${{ matrix.php }} - ${{ matrix.dependency-version }}

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
tools: composer:v2

- name: Install dependencies
run: |
composer update --${{ matrix.dependency-version }} --prefer-dist --no-progress
- name: Execute Unit Tests
run: composer test
34 changes: 0 additions & 34 deletions .travis.yml

This file was deleted.

0 comments on commit 99d5ad4

Please sign in to comment.