Skip to content

Merge pull request #850 from diowa/dependabot/bundler/rails-7.1.3.3 #1862

Merge pull request #850 from diowa/dependabot/bundler/rails-7.1.3.3

Merge pull request #850 from diowa/dependabot/bundler/rails-7.1.3.3 #1862

Workflow file for this run

name: CI
# TODO: Don't do this! Use GitHub's encrypted secrets and set the value of the
# variable as ${{ secrets.RAILS_MASTER_KEY }}
# Ref: https://docs.github.com/en/actions/reference/encrypted-secrets
env:
RAILS_MASTER_KEY: 02a9ea770b4985659e8ce92699f218dc
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
test:
name: Ruby specs
runs-on: ubuntu-latest
env:
DATABASE_URL: postgres://postgres:postgres@localhost/ruby3_rails7_bootstrap_heroku_test
RAILS_ENV: test
services:
db:
image: postgres:12
ports: ['5432:5432']
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3.1'
bundler-cache: true
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
- name: Yarn
run: yarn
- name: Set up Database
run: bundle exec rails db:prepare
- name: Run specs
run: bundle exec rake spec
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: 'coverage/lcov.info'