Skip to content

Commit

Permalink
feat: add github action for CI (rspec)
Browse files Browse the repository at this point in the history
Using a matrix to test on different ruby versions.
  • Loading branch information
kevinjalbert committed Oct 25, 2021
1 parent cc3ef1c commit 82f5ea0
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI

on:
pull_request:
push:
branches:
- master

jobs:
tests:
strategy:
fail-fast: false
matrix:
os: [ubuntu-18.04]
# Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
ruby: [2.5, 2.6, 2.7, '3.0']
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Ruby and install gems
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Ruby tests
run: bundle exec rspec

0 comments on commit 82f5ea0

Please sign in to comment.