Skip to content

Quick fix: add expression notation to stale label comment if && condi… #401

Quick fix: add expression notation to stale label comment if && condi…

Quick fix: add expression notation to stale label comment if && condi… #401

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
erb_javascript_rails:
runs-on: ubuntu-latest
name: "ES Check, ERBLint, ESLint, and RSpec"
env:
RAILS_ENV: test
services:
postgres:
image: postgres:14.8-alpine
env:
POSTGRES_USER: sm
POSTGRES_PASSWORD: sm_password
# Set health checks to wait until postgres has started
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- uses: actions/setup-node@v4
with:
node-version: '18.18.x'
cache: 'yarn'
- name: Install JS dependencies
run: yarn install --frozen-lockfile
- name: Precomple Rails assets
run: bundle exec rails assets:precompile
- name: Run ES Check
run: yarn es-check
- name: Run ERBLint
run: yarn lint-erb
- name: Run ESLint
run: yarn lint
- name: Setup DB and run RSpec
run: |-
bundle exec rails db:create
bundle exec rake db:schema:load --trace
bundle exec rails db:migrate
bundle exec rails db:seed
bundle exec rspec
ruby_linting:
runs-on: ubuntu-latest
name: Ruby Linting
env:
BUNDLE_ONLY: linting
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- run: bundle exec rubocop --format progress --format github