.github/workflows/check.yml in ably-1.2.2 vs .github/workflows/check.yml in ably-1.2.3
- old
+ new
@@ -24,17 +24,28 @@
- name: 'Run ${{ matrix.type }} tests on ruby ${{ matrix.ruby }} (${{ matrix.protocol }} protocol)'
env:
PARALLEL_TEST_PROCESSORS: 2
RSPEC_RETRY: true
PROTOCOL: ${{ matrix.protocol }}
- 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 }}
+ TEST_TYPE: ${{ matrix.type }}
+ RUBY_VERSION: ${{ matrix.ruby }}
+ run: |
+ cp .github/workflows/.rspec_parallel .rspec_parallel
+ mkdir junit
+ bundle exec parallel_rspec --prefix-output-with-test-env-number --first-is-1 -- spec/${{ matrix.type }}
+ - uses: actions/upload-artifact@v3
+ with:
+ path: |
+ junit/
+ coverage/
+ retention-days: 7
- 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: '.'
+ path: 'junit/'
- uses: coverallsapp/github-action@1.1.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: ruby-${{ matrix.ruby }}-${{ matrix.protocol }}-${{ matrix.type }}
parallel: true