Skip to content

Feature/initial implementation #2

Feature/initial implementation

Feature/initial implementation #2

Workflow file for this run

name: Run Tests
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
workflow_dispatch:
workflow_call:
jobs:
lint:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
bundler-cache: true
- name: Lint via rubocop
run:
rake rubocop
test:
runs-on: ubuntu-20.04
strategy:
matrix:
ruby-version: ["3.0", "3.1", "3.2", "3.4"]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Test
run: |
bundle exec rake -- test