Skip to content

Commit

Permalink
Try to migrate from Travis to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
azumakuniyuki committed Mar 6, 2024
1 parent 882db00 commit b511035
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/rake-test.yml
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

0 comments on commit b511035

Please sign in to comment.