Bump eslint from 9.4.0 to 9.5.0 #403
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: Tests | |
on: | |
pull_request: | |
branches: | |
- "*" | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:latest | |
env: | |
POSTGRES_USER: ${{ secrets.DB_USER }} | |
POSTGRES_PASSWORD: ${{ secrets.DB_PASS }} | |
POSTGRES_DB: boilerplate_test | |
ports: ["5432:5432"] | |
redis: | |
image: redis | |
ports: ["6379:6379"] | |
options: --entrypoint redis-server | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler: default | |
bundler-cache: true | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.13.1 | |
- uses: pnpm/action-setup@v4 | |
name: Install pnpm | |
with: | |
version: 9.1.4 | |
run_install: true | |
- name: Install dependencies | |
run: | | |
sudo apt update && sudo apt-get install -y -qq libvips | |
pnpm install | |
- name: Rubocop Check | |
run: bundle exec rubocop | |
- name: Run tests | |
env: | |
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }} | |
DB_HOST: localhost | |
DB_NAME: boilerplate_test | |
DB_PORT: 5432 | |
DB_USER: ${{ secrets.DB_USER }} | |
DB_PASS: ${{ secrets.DB_PASS }} | |
DB_URL: | |
RAILS_ENV: test | |
run: | | |
bin/rails db:test:prepare | |
bundle exec rspec |