Rewrite Search #715
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 | |
- run: | | |
sed "s/1000/`id -u`/" docker-compose.override.yml.example > docker-compose.override.yml | |
docker-compose build --pull | |
linter: | |
needs: setup | |
runs-on: ubuntu-latest | |
steps: | |
- name: Run linter | |
run: docker-compose run --rm software bundle exec rubocop | |
haml-linter: | |
needs: setup | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run linter | |
run: docker-compose run --rm software bundle exec haml-lint app/views/ | |
unit: | |
needs: [linter, haml-linter] | |
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: [linter, haml-linter] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run system tests | |
run: docker-compose run --rm software bundle exec rake test:system |