Skip to content

Commit

Permalink
Merge pull request #17 from ilios/move-ci-to-github
Browse files Browse the repository at this point in the history
Move CI to Github Actions
  • Loading branch information
dartajax authored Feb 25, 2021
2 parents 779448c + 608c101 commit b72149c
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 18 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Continuous Integration

on:
push:
branches:
- master
pull_request:
schedule:
- cron: '34 4 * * 1' # weekly, on Thursday morning

jobs:
code_style:
name: Code Style
runs-on: ubuntu-latest

strategy:
matrix:
php-version: [7.4,8.0]

steps:
- uses: actions/checkout@v2
- name: Use PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: ${{ matrix.php-version }}
- name: install dependencies
run: composer install --no-interaction --prefer-dist
- name: lint src
run: bin/phpcs --standard=PSR2 src
- name: lint tests
run: bin/phpcs --standard=PSR2 tests

tests:
name: PHPUnit Tests
needs: code_style
runs-on: ubuntu-latest

strategy:
matrix:
php-version: [7.4,8.0]

steps:
- uses: actions/checkout@v2
- name: Use PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: ${{ matrix.php-version }}
- name: install dependencies
run: composer install --no-interaction --prefer-dist
- name: Run Tests
run: bin/phpunit tests
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

0 comments on commit b72149c

Please sign in to comment.