From a38db33bd1af03f77676a442a990fcea7f887024 Mon Sep 17 00:00:00 2001 From: Hettie Street Date: Fri, 16 Sep 2022 17:28:50 +0100 Subject: [PATCH] wip --- .github/workflows/tests.yml | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0f4e777..330cdd2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,22 +1,40 @@ -name: Ruby - +name: Tests 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 + + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }}