Bump esbuild from 0.19.4 to 0.19.11 #165
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
# This workflow uses actions that are not certified by GitHub. They are | |
# provided by a third-party and are governed by separate terms of service, | |
# privacy policy, and support documentation. | |
# | |
# This workflow will install a prebuilt Ruby version, install dependencies, and | |
# run tests and linters. | |
name: "Ruby on Rails CI" | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
linters: | |
name: "Linters" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Ruby and install gems | |
uses: ruby/setup-ruby@d37167af451eb51448db3354e1057b75c4b268f7 # v1.155.0 | |
with: | |
bundler-cache: true | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
cache: "yarn" | |
- name: Run linters | |
run: | | |
bin/standardrb --parallel | |
- name: Run security checks | |
run: | | |
bin/bundler-audit --update | |
# bin/brakeman -q -w2 | |
tests: | |
name: "Tests" | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:14-alpine | |
env: | |
POSTGRES_DB: rails_test | |
POSTGRES_USER: rails | |
POSTGRES_PASSWORD: password | |
ports: | |
- "5432:5432" | |
env: | |
RAILS_ENV: test | |
DATABASE_URL: "postgres://rails:password@localhost:5432/rails_test" | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Ruby and install gems | |
uses: ruby/setup-ruby@d37167af451eb51448db3354e1057b75c4b268f7 # v1.155.0 | |
with: | |
bundler-cache: true | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
cache: "yarn" | |
- name: Install packages | |
run: yarn install | |
- name: Yarn build | |
run: yarn build | |
- name: Setup test database | |
run: bin/rails db:schema:load | |
- name: Run tests | |
run: bin/rspec --exclude-pattern "spec/system/**/*.spec.rb" | |
# Add or replace any other lints here | |
- name: Coveralls GitHub Action | |
uses: coverallsapp/github-action@v2 |