Skip to content

[Housekeeping] Add permissions to build workflow and pin ruby #155

[Housekeeping] Add permissions to build workflow and pin ruby

[Housekeeping] Add permissions to build workflow and pin ruby #155

Workflow file for this run

name: Build + Test
on: [pull_request, push]
permissions:
contents: read
jobs:
build:
name: Build + Test
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [ '2.6', '2.7', '3.0', '3.1', '3.2' ]
steps:
- uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@a6e6f86333f0a2523ece813039b8b4be04560854 #v1.190.0 tag
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Build and test with Rake
run: |
bundle exec rubocop
bundle exec rspec spec