Skip to content

Commit

Permalink
Use GitHub Rspec formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
Splines committed Jan 10, 2024
1 parent b311ca1 commit 1d4e9af
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,9 @@ jobs:
run: |
docker buildx bake --file ./docker-compose.yml --file ./../../.github/workflows/docker-compose-cache.json
# For docker layer caching also see this article [1]
# - name: Build docker images
# uses: docker/build-push-action@v5
# with:
# push: false # only build
# context: .
# cache-from: type=gha
# cache-to: type=gha,mode=max

- name: Create and migrate DB
run: docker compose run --entrypoint "" mampf sh -c "rake db:create db:migrate db:test:prepare"
working-directory: docker/test
run: docker compose run --entrypoint "" mampf sh -c "rake db:create db:migrate db:test:prepare"

- name: Reindex sunspot
working-directory: docker/test
Expand All @@ -55,9 +46,9 @@ jobs:
- name: Run unit tests
working-directory: docker/test
run: docker compose run --entrypoint="" mampf sh -c "RAILS_ENV=test rails spec"
run: docker compose run --entrypoint="" mampf sh -c "RAILS_ENV=test bundle exec rspec --format RSpec::Github::Formatter"

- name: Send test coverage report to Codecov
- name: Report test coverage to codecov
uses: codecov/codecov-action@v3
with:
files: ./coverage/coverage.xml
Expand Down
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ group :test, :development, :docker_development do

gem "cypress-on-rails", "~> 1.0"
gem "simplecov-cobertura"

gem "rspec-github"
end

gem "prometheus_exporter"
3 changes: 3 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,8 @@ GEM
rspec-expectations (3.12.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-github (2.4.0)
rspec-core (~> 3.0)
rspec-mocks (3.12.5)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
Expand Down Expand Up @@ -700,6 +702,7 @@ DEPENDENCIES
responders
rgl
rqrcode
rspec-github
rspec-rails
rubocop (~> 1.57)
rubocop-performance (~> 1.16)
Expand Down

0 comments on commit 1d4e9af

Please sign in to comment.