chore(deps): bump pre-commit/action from 37faf8a587e18fa3a3f78f600c9edbfd0691c3c3 to c7d159c2092cbfaab7352e2d8211ab536aa2267c #198
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: "CI" | |
on: | |
pull_request: | |
push: | |
branches: [ main ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
permissions: | |
contents: read | |
checks: write | |
env: | |
RAILS_ENV: test | |
strategy: | |
fail-fast: true | |
matrix: | |
ruby: ["2.7", "3.0", "3.1"] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
- name: Install Ruby and gems | |
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 | |
with: | |
bundler-cache: true | |
ruby-version: ${{ matrix.ruby }} | |
- name: Run RSpec Tests | |
timeout-minutes: 20 | |
run: bundle exec rspec -f doc | |
lint: | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
- name: Install Ruby and gems | |
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 | |
with: | |
bundler-cache: true | |
ruby-version: "3.1" | |
- name: Bundle Audit Check | |
run: bundle exec bundle-audit update && bundle exec bundle-audit check | |
- name: Setup Python | |
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 | |
with: | |
python-version: "3.10" | |
- name: Run pre-commit | |
uses: pre-commit/action@c7d159c2092cbfaab7352e2d8211ab536aa2267c |