Skip to content

Commit

Permalink
Merge pull request #361 from ably/junit-integration
Browse files Browse the repository at this point in the history
Rspec junit format and observability server integration
  • Loading branch information
owenpearson authored Jun 8, 2022
2 parents 0f88cbe + 71da49b commit 8d3594d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
matrix:
ruby: [ '2.7', '3.0', '3.1' ]
protocol: [ 'json', 'msgpack' ]
type: [ 'unit', 'acceptance' ]
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -20,15 +21,23 @@ jobs:
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- env:
RSPEC_RETRY: true
- name: 'Run ${{ matrix.type }} tests on ruby ${{ matrix.ruby }} (${{ matrix.protocol }} protocol)'
env:
PARALLEL_TEST_PROCESSORS: 2
RSPEC_RETRY: true
PROTOCOL: ${{ matrix.protocol }}
run: ./spec/run_parallel_tests
run: bundle exec parallel_rspec --prefix-output-with-test-env-number -- --format documentation --format RspecJunitFormatter --out ${{ matrix.protocol }}-${{ matrix.type }}-ruby-${{ matrix.ruby }}.junit -- spec/${{ matrix.type }}
- name: Upload test results
if: always()
uses: ably-labs/test-observability-action@main
with:
server-url: 'https://test-observability.herokuapp.com'
server-auth: ${{ secrets.TEST_OBSERVABILITY_SERVER_AUTH_KEY }}
path: '.'
- uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: run-ruby_${{ matrix.ruby }}-${{ matrix.protocol }}_protocol
flag-name: ruby-${{ matrix.ruby }}-${{ matrix.protocol }}-${{ matrix.type }}
parallel: true
finish:
needs: check
Expand Down
1 change: 1 addition & 0 deletions ably.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rake', '~> 13.0'
spec.add_development_dependency 'redcarpet', '~> 3.3'
spec.add_development_dependency 'rspec', '~> 3.11.0'
spec.add_development_dependency 'rspec_junit_formatter', '~> 0.5.1'
spec.add_development_dependency 'rspec-retry', '~> 0.6'
spec.add_development_dependency 'yard', '~> 0.9'
spec.add_development_dependency 'rspec-instafail', '~> 1.0'
Expand Down

0 comments on commit 8d3594d

Please sign in to comment.