Skip to content

Commit

Permalink
Set up GitHub Actions to run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zkan committed Apr 7, 2024
1 parent 5110551 commit 987b4c6
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3.0
bundler-cache: true

- name: Install dependencies
run: |
bundle install --jobs 4 --retry 3
- name: Run Tests
env:
RAILS_ENV: test
run: |
bundle exec rails db:migrate
bundle exec rails test

0 comments on commit 987b4c6

Please sign in to comment.