-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from ilios/move-ci-to-github
Move CI to Github Actions
- Loading branch information
Showing
2 changed files
with
53 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.