Skip to content

didn't need that

didn't need that #6

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
ports:
- 5432:5432
env:
POSTGRES_DB: pirate_app_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3.0
- name: Install dependencies
env:
BUNDLE_GITHUB__COM: ${{ secrets.GH_PAT }}
run: |
gem install bundler
bundle config set --local github.com "x-access-token:${{ secrets.GH_PAT }}"
bundle install
- name: Set up database
run: |
bundle exec rails db:create db:schema:load
env:
RAILS_ENV: test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
- name: Run tests
run: bundle exec rspec
env:
RAILS_ENV: test