Rails 7.1 にアップグレードした #8
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: Test | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: PreCompile assets | |
run: ./rails assets:precompile RAILS_ENV=test | |
- name: Create database | |
run: ./rails db:create | |
- name: Run tests on docker compose | |
run: ./rails test |