Skip to content

Commit

Permalink
add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
loftwah committed Aug 2, 2024
1 parent 77b7faf commit f92e954
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3.0

- name: Install dependencies
run: |
gem install bundler
bundle install
- name: Set up database
run: bundle exec rails db:create db:migrate
env:
RAILS_ENV: test

- name: Run tests
run: bundle exec rspec
env:
RAILS_ENV: test

0 comments on commit f92e954

Please sign in to comment.