Skip to content

Commit

Permalink
Update coveralls and simplecov CI configuration (#6592)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-yz-liu committed May 22, 2023
1 parent 66c0fd8 commit 91143b5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/test_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: MarkUs Tests
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
push:
branches:
- master

jobs:
test:
if: github.event.pull_request.draft == false
Expand Down Expand Up @@ -84,32 +88,34 @@ jobs:
- name: Run chromedriver
run: chromedriver --whitelisted-ips &
- name: Run rspec tests
run: bundle exec rspec
run: |
bundle exec rspec
bundle exec rspec spec/system
env:
MARKUS__PYTHON: ./venv/bin/python3
- name: Run rspec system tests
run: bundle exec rspec spec/system
- name: Coveralls Parallel (rspec)
uses: coverallsapp/github-action@1.1.3
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: rspec
parallel: true
- name: Run jest tests
run: npm run test-cov
- name: Coveralls Parallel (jest)
uses: coverallsapp/github-action@1.1.3
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: jest
parallel: true

finish:
needs: test
if: github.event.pull_request.draft == false
runs-on: ubuntu-20.04
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@1.1.3
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
carryforward: "rspec,jest"
2 changes: 2 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@
config.before type: :system do
# Override the default driver used by rspec system tests
driven_by :selenium_remote_chrome

SimpleCov.command_name 'system'
end

config.after :each do |test|
Expand Down

0 comments on commit 91143b5

Please sign in to comment.