Skip to content

Commit

Permalink
Add test github action
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyCTHsu committed May 6, 2024
1 parent cb12d4d commit 11b7ea1
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Unit Test

on:
push:
pull_request:

jobs:
test:
runs-on: ubuntu-latest
name: Test with ${{ matrix.ruby }}
strategy:
matrix:
# Find the versions available at https://github.com/ruby/setup-ruby/blob/master/ruby-builder-versions.json
ruby:
- '3.3.1'
- '3.2.4'
- '3.1.5'
- '3.0.6'
- '2.7.8'
- '2.6.10'
- '2.5.9'
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run the test
run: bundle exec rake test

0 comments on commit 11b7ea1

Please sign in to comment.