Merge pull request #43 from saturdaymp-examples/dependabot/npm_and_ya… #144
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] | |
jobs: | |
build: | |
name: Build Job | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Build Docker Image Step | |
run: docker-compose build web | |
- name: Rubocop Standard | |
run: docker-compose run web rake standard | |
- name: Run Sorbet | |
run: docker-compose run web srb tc | |
- name: Test setup | |
run: | | |
docker-compose run web bundle exec rails db:create RAILS_ENV=test | |
docker-compose run web bundle exec rails db:schema:load RAILS_ENV=test | |
- name: Run tests | |
run: docker-compose run web bundle exec rails test |