Skip to content

Commit

Permalink
Add tests in github ci
Browse files Browse the repository at this point in the history
  • Loading branch information
fauresebast committed Oct 25, 2023
1 parent dd5de70 commit 7c75167
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Ruby CI

on: [push, pull_request]

jobs:
test:

runs-on: ubuntu-latest

strategy:
matrix:
ruby-version: ['3.1', '3.0', '2.7']
continue-on-error: [false]

name: ${{ format('Tests (Ruby {0})', matrix.ruby-version) }}
continue-on-error: ${{ matrix.continue-on-error }}

steps:
- uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install dependencies
run: bundle install
- name: Install appraisal dependencies
run: bundle exec appraisal install
- name: Run tests
run: bundle exec appraisal rake test

0 comments on commit 7c75167

Please sign in to comment.