-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create GitHub Workflow config to simulate Travis builds
- Loading branch information
1 parent
e27de34
commit 4ab51bd
Showing
1 changed file
with
50 additions
and
0 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,50 @@ | ||
name: Tests | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- 'README.md' | ||
push: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- 'README.md' | ||
|
||
jobs: | ||
unit_tests: | ||
name: Unit Tests | ||
if: "contains(github.event.commits[0].message, '[ci skip]') == false" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu | ||
ruby: | ||
- 2.2 | ||
- 2.3 | ||
- 2.4 | ||
- 2.5 | ||
- 2.6 | ||
- 2.7 | ||
allow_failures: | ||
- false | ||
include: | ||
- os: ubuntu | ||
ruby: ruby-head | ||
allow_failures: true | ||
env: | ||
ALLOW_FAILURES: "${{ matrix.allow_failures }}" | ||
runs-on: ${{ matrix.os }}-latest | ||
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
- name: Test | ||
run: COVERAGE=true bundle exec rspec || $ALLOW_FAILURES |