-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try to migrate from Travis to GitHub Actions
- Loading branch information
1 parent
882db00
commit b511035
Showing
1 changed file
with
29 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,29 @@ | ||
name: rake test | ||
on: | ||
push: | ||
branches: ["5-stable"] | ||
pull_request: | ||
branches: ["5-stable"] | ||
jobs: | ||
test: | ||
name: Make Test with Ruby ${{ matrix.ruby }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby: ["2.4", "2.7", "3.0", "3.3", "jruby-9.2", "jruby-9.3", "jruby-9.4"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
- run: gem install bundle rake minitest | ||
- name: Cache the dependent gems | ||
uses: actions/cache@v2 | ||
with: | ||
path: ./cache | ||
key: ${{ runner.os }}-ruby-${{ matrix.ruby }}-${{ hashFiles('./gem.snapshot') }} | ||
- run: ruby -v | ||
- run: rake test | ||
|