[CI] migrate to Github Actions from CircleCI #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |