Refactoring the requirements module #132
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: repo-checks | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
- main | |
jobs: | |
main: | |
name: ruby | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ruby-version: [3.0.4, 2.7.5, 2.6.10] | |
steps: | |
- uses: zendesk/checkout@v3 | |
- uses: zendesk/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby-version }} | |
- name: Vendor Cache | |
id: vendor-cache | |
uses: zendesk/cache@v3 | |
with: | |
path: vendor/cache | |
key: ${{ runner.os }}-vendor-ruby-${{ matrix.ruby-version }}-lock-${{ hashFiles('Gemfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-vendor-ruby-${{ matrix.ruby-version }}- | |
${{ runner.os }}-vendor- | |
- name: before_script | |
run: | | |
bundle config set --local path 'vendor/cache' | |
bundle install --jobs=3 --retry=3 | |
- name: build | |
run: | | |
bundle exec rake | |
- name: lint | |
run: | | |
bundle exec rubocop |