Rewrite Search #719
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: Test Suite | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master, staging ] | |
workflow_dispatch: | |
jobs: | |
setup: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install bundle | |
run: | | |
docker-compose run --rm --no-deps software bundle install --local | |
- name: Cache Ruby Bundle | |
uses: actions/cache@v3 | |
with: | |
path: | | |
vendor/bundle | |
key: bundle-${{ hashFiles('Gemfile.lock') }} | |
rubocop: | |
needs: setup | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run linter | |
run: docker-compose run --rm --no-deps software bundle exec rubocop | |
haml-lint: | |
needs: setup | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run linter | |
run: docker-compose run --rm --no-deps software bundle exec haml-lint app/views/ | |
unit: | |
needs: [rubocop, haml-lint] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run unit tests | |
run: docker-compose run --rm software bundle exec rake test | |
system: | |
needs: [rubocop, haml-lint] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run system tests | |
run: docker-compose run --rm software bundle exec rake test:system |