Merge pull request #921 from Intrepidd/patch-1 #874
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: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
bundler-audit: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Run bundler-audit | |
env: | |
# Neccessary for jruby test coverage | |
JRUBY_OPTS: "--debug" | |
run: bundle exec bundler-audit --update | |
rubocop: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Install dependencies and run rubocop | |
env: | |
# Neccessary for jruby test coverage | |
JRUBY_OPTS: "--debug" | |
run: bundle exec rubocop | |
rspec: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Install dependencies and run RSpec | |
run: bundle exec rspec | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: "Test Coverage" | |
path: coverage/ |