Build(deps-dev): Bump rspec-rails from 7.1.0 to 7.1.1 #4394
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] | |
jobs: | |
rubocop: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v4 | |
- name: set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Rubocop | |
run: bundle exec rubocop | |
brakeman: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v4 | |
- name: set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Brakeman | |
run: bundle exec brakeman | |
eslint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".tool-versions" | |
cache: "npm" | |
- name: npm | |
run: npm ci | |
- name: lint | |
run: npm run lint | |
stylelint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".tool-versions" | |
cache: "npm" | |
- name: npm | |
run: npm ci | |
- name: stylelint | |
run: npx stylelint "app/javascript/**/*.scss" | |
jest: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".tool-versions" | |
cache: "npm" | |
- name: npm | |
run: npm ci | |
- name: test | |
run: npm test | |
prettier: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".tool-versions" | |
cache: "npm" | |
- name: npm | |
run: npm ci | |
- name: prettier | |
run: bin/prettier --check | |
assets-precompile: | |
runs-on: ubuntu-latest | |
env: | |
RAILS_ENV: production | |
HEROKU_APP_NAME: dummy | |
REDIS_URL: dummy | |
SECRET_KEY_BASE: dummy | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v4 | |
- name: set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: install required apt packages | |
run: sudo apt-get -y install libpq-dev | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".tool-versions" | |
cache: "npm" | |
- name: bundle install | |
run: | | |
bundle config path vendor/bundle | |
bundle install --jobs 4 --retry 3 | |
- name: npm | |
run: npm ci | |
- name: run bin/rails assets:precompile | |
run: bin/rails assets:precompile | |
rspec: | |
runs-on: ubuntu-latest | |
env: | |
RAILS_ENV: test | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v4 | |
- name: set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".tool-versions" | |
cache: "npm" | |
- name: bundle install | |
run: | | |
bundle config path vendor/bundle | |
bundle install --jobs 4 --retry 3 | |
- name: npm | |
run: npm ci | |
- name: run bin/shakapacker | |
run: bin/shakapacker | |
- name: rspec | |
run: bundle exec rspec | |
- name: Archive capybara artifacts | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: capybara | |
path: tmp/capybara/ |