Skip to content

chore(deps): update dependency rails to v7 #106

chore(deps): update dependency rails to v7

chore(deps): update dependency rails to v7 #106

Workflow file for this run

name: test
on:
push:
jobs:
test:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:8.1
ports:
- "3306:3306"
env:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
options: >-
--health-cmd "mysqladmin ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
PUBSUB_TOPIC_ID: trabox
PUBSUB_SUBSCRIPTION_ID: trabox-sub
PUBSUB_EMULATOR_HOST: localhost:8085
GOOGLE_CLOUD_PROJECT: trabox
RAILS_ENV: test
steps:
- name: Checkout code
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- name: Set up gcloud
uses: google-github-actions/setup-gcloud@v1
with:
install_components: "beta,pubsub-emulator"
- name: Set up ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
bundler-cache: true
- name: Set up database
run: |
cd spec/rails_app
bin/rails db:setup
- name: Run tests
run: |
gcloud beta emulators pubsub start --host-port=localhost:8085 --quiet &
curl http://localhost:8085 --silent --retry 30 --retry-delay 1 --retry-connrefused
bin/rspec