Skip to content

Commit

Permalink
Merge pull request #12 from cosmo0920/testing-on-github-actions
Browse files Browse the repository at this point in the history
Add GitHub Actions for CI
  • Loading branch information
cosmo0920 committed Oct 24, 2021
2 parents c3f6c03 + 43e7c87 commit a59b329
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Unit Test
on:
- push
- pull_request
jobs:
test:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
ruby: [ '2.5', '2.6', '2.7', '3.0' ]
os:
- windows-latest
experimental: [false]
include:
- ruby: 'head'
os: windows-latest
experimental: true
name: Unit testing with Ruby ${{ matrix.ruby }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install
run: |
ruby --version
gem --version
gem install bundler rake
ridk exec bundle install --jobs 4 --retry 3
- name: Unit Test
run: |
bundle exec rake test

0 comments on commit a59b329

Please sign in to comment.