Skip to content

lol we need a lot more setup for rails #2

lol we need a lot more setup for rails

lol we need a lot more setup for rails #2

Workflow file for this run

name: Rails Tests
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
name: Rails tests
strategy:
matrix:
ruby:
- '3.2.2'
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 18.16.0
cache: yarn
- name: Install packages
run: yarn install --pure-lockfile
- name: Setup test database
env:
RAILS_ENV: test
run: bin/rails db:setup
- name: Run the default task
run: bin/rails test