Rewrite Search #716
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 | |
container: registry.opensuse.org/opensuse/infrastructure/software.opensuse.org/containers/software/base:latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
ls | |
cat /etc/os-release | |
linter: | |
needs: setup | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- 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 |