Merge pull request #2 from GSA/add-formatter #16
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: Lint and Tests | |
on: [push, pull_request] | |
jobs: | |
lint: | |
name: Ruby Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Run bundle install | |
run: | | |
gem install bundler | |
bundle install --jobs 4 --retry 3 | |
- name: Check Rubocop Styles | |
run: bundle exec rubocop | |
test: | |
name: Run tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Run bundle install | |
run: | | |
gem install bundler | |
bundle install --jobs 4 --retry 3 | |
- name: Run tests | |
run: bin/rails test |