Merge pull request #94 from javierav/dependabot/bundler/development/s… #237
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 | |
env: | |
CI: true | |
jobs: | |
rubocop: | |
name: Rubocop | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Ruby 3.2.2 | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
ruby-version: 3.2.2 | |
- name: Run Rubocop | |
run: bin/rubocop | |
tests: | |
name: Tests | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
env: | |
RAILS_ENV: test | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Ruby 3.2.2 | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
ruby-version: 3.2.2 | |
- name: Setup database | |
run: bin/rails db:setup | |
- name: Run tests | |
run: | | |
bin/rails test --fail-fast | |
bin/rails test:system |