Skip to content

[CI] migrate to Github Actions from CircleCI #4

[CI] migrate to Github Actions from CircleCI

[CI] migrate to Github Actions from CircleCI #4

name: Run Tests
on:
push:
branches: [main]
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
# Ruby version is read from .ruby-version
bundler-cache: true # run 'bundle install' and cache installed gems
- name: Run minitest
run: bundle exec rails test
# timeout in case tests get stuck
timeout-minutes: 5
env:
PORT: 3000
WEB_CONCURRENCY: 1
RAILS_ENV: test