Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub Actions, trim jobs from Travis
- Loading branch information
Showing
2 changed files
with
49 additions
and
9 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,49 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
name: >- | ||
${{ matrix.os }} ${{ matrix.ruby }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ ubuntu-20.04, macos-11.0, windows-2019 ] | ||
ruby: [ 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, head ] | ||
include: | ||
- { os: windows-2019, ruby: mingw } | ||
exclude: | ||
- { os: macos-11.0 , ruby: 2.2 } | ||
- { os: macos-11.0 , ruby: 2.3 } | ||
- { os: windows-2019, ruby: head } | ||
|
||
steps: | ||
- name: repo checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: load ruby, ragel | ||
uses: MSP-Greg/setup-ruby-pkgs@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
mingw: _upgrade_ | ||
|
||
- name: bundle install | ||
shell: pwsh | ||
run: | | ||
# update RubyGems in Ruby 2.2, bundle install | ||
if ('${{ matrix.ruby }}' -lt '2.3') { | ||
gem update --system 2.7.10 --no-document | ||
} | ||
bundle config set --local path .bundle/vendor | ||
bundle install --jobs 4 --retry 3 | ||
- name: compile | ||
timeout-minutes: 5 | ||
run: bundle exec rake compile | ||
|
||
- name: test | ||
timeout-minutes: 5 | ||
run: bundle exec rake test |
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