Bump actions/checkout from 3 to 4 (#167) #128
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: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ruby: ["3.0", "3.1", "3.2"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: migration | |
run: | | |
bin/rails db:create RAILS_ENV=test | |
bin/rails db:migrate RAILS_ENV=test | |
- name: test | |
run: bin/rails test | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |