Skip to content

Commit

Permalink
Merge pull request #16 from DFE-Digital/add-test-matrix-in-ci
Browse files Browse the repository at this point in the history
Add test matrix in CI
  • Loading branch information
HettieS authored Sep 20, 2022
2 parents 4514993 + eb6568b commit 5fade5d
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
name: Ruby

on:
- pull_request

jobs:
test:

rspec:
strategy:
fail-fast: false
matrix:
ruby: ['2.7.6', '3.0.4', '3.1.2']
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
ruby-version: ${{ matrix.ruby }}

- name: Install dependencies
run: bundle install --jobs 4 --retry 3

- name: Run linter
run: bundle exec rubocop .

- name: Run tests
run: bundle exec rake

0 comments on commit 5fade5d

Please sign in to comment.