Skip to content

Bump rubocop-performance from 1.20.2 to 1.21.0 #378

Bump rubocop-performance from 1.20.2 to 1.21.0

Bump rubocop-performance from 1.20.2 to 1.21.0 #378

Workflow file for this run

name: Tests
on:
pull_request:
branches:
- '*'
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:latest
env:
POSTGRES_USER: pedrosouza
POSTGRES_PASSWORD: password
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.11.0
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: true
# - name: Get pnpm store directory
# shell: bash
# run: |
# echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
# - uses: actions/cache@v3
# name: Setup pnpm cache
# with:
# path: ${{ env.STORE_PATH }}
# key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
# restore-keys: |
# ${{ runner.os }}-pnpm-store-
- 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 }}
RAILS_ENV: test
run: |
bin/rails db:test:prepare
bundle exec rspec