Skip to content

Commit

Permalink
Run CI in our docker-compose setup
Browse files Browse the repository at this point in the history
  • Loading branch information
hennevogel committed Nov 9, 2023
1 parent 5ec4077 commit 8c81100
Showing 1 changed file with 8 additions and 24 deletions.
32 changes: 8 additions & 24 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,53 +10,37 @@ on:
jobs:
setup:
runs-on: ubuntu-latest
container: registry.opensuse.org/opensuse/infrastructure/software.opensuse.org/containers/software/base:latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
bundler-cache: true
- run: |
ls
cat /etc/os-release
linter:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
bundler-cache: true
- name: Run linter
run: bundle exec rubocop
run: docker-compose run --rm software bundle exec rubocop
haml-linter:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
bundler-cache: true
- name: Run linter
run: bundle exec haml-lint app/views/
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
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
bundler-cache: true
- name: Run unit tests
run: bundle exec rake test
run: docker-compose run --rm software bundle exec rake test
system:
needs: [linter, haml-linter]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
bundler-cache: true
- name: Run system tests
run: bundle exec rake test:system
run: docker-compose run --rm software bundle exec rake test:system

0 comments on commit 8c81100

Please sign in to comment.