Skip to content

Add Capybara screenshot to help with debugging #9

Add Capybara screenshot to help with debugging

Add Capybara screenshot to help with debugging #9

on:
push:
branches: "*"
pull_request:
branches: "*"
jobs:
test:
name: Test suite
runs-on: ubuntu-latest
services:
postgres:
image: postgres:17-alpine
ports:
- "5432:5432"
env:
POSTGRES_DB: rails_test
POSTGRES_USER: rails
POSTGRES_PASSWORD: password
env:
RAILS_ENV: test
DATABASE_URL: "postgres://rails:password@localhost:5432/rails_test"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Run NPM install
env:
PACKAGES_ACCESS_TOKEN: ${{secrets.PACKAGES_ACCESS_TOKEN}}
run: |
yarn install
- name: Install Ruby and gems
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Set up database schema
run: bin/rails db:schema:load
- name: Test
run: script/all/test