Skip to content

Bump ruby/setup-ruby from 1.167.0 to 1.168.0 #1659

Bump ruby/setup-ruby from 1.167.0 to 1.168.0

Bump ruby/setup-ruby from 1.167.0 to 1.168.0 #1659

Workflow file for this run

name: RSpec
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: "0 21 * * 6"
permissions:
contents: read
env:
POSTGRES_HOST_AUTH_METHOD: "trust"
POSTGRES_USER: "runner"
POSTGRES_DB: "evemonk_test"
PGHOST: "localhost"
SECRET_KEY_BASE: "919650e468e29e897a53ef239b6e0228f8b71ec6ed353b691d140945e98d0c6a63731811afc27b61b9094523740962499afabc6d7ad0c872f1d5b62472083a08"
CI: "yes"
jobs:
rspec:
runs-on: ubuntu-latest
services:
postgres:
image: "postgres:16.1"
env:
POSTGRES_HOST_AUTH_METHOD: "trust"
POSTGRES_USER: "runner"
POSTGRES_DB: "evemonk_test"
ports:
- "5432:5432"
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
with:
egress-policy: audit
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up Ruby
uses: ruby/setup-ruby@432702e864cadc1b56247e31aa341be5be3e129a # v1.168.0
with:
bundler-cache: true
- run: bundle exec bootsnap precompile --gemfile app/ lib/ config/
- run: bin/rails zeitwerk:check
- run: bin/rails db:create
- run: bin/rails db:migrate
- run: bin/rspec --force-color --profile --format documentation