Make Arquivo run from within Docker #18
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: | |
workflow_dispatch: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
run_rails_test: | |
runs-on: ubuntu-latest | |
name: "rails test" | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- uses: actions/setup-python@v4 # for building node-sass? | |
- run: | | |
git config --global user.name "github-actions" | |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
- name: "bundle" | |
run: "bundle install && yarn install" | |
- name: "rake db:setup" | |
run: "bundle exec rails db:setup" | |
- name: "test" | |
run: "bundle exec rails test" |