55 branches :
66 - main
77
8+ permissions : {}
9+
810jobs :
911 check :
1012 runs-on : ubuntu-latest
13+ permissions :
14+ contents : read
1115 strategy :
1216 fail-fast : false
1317 matrix :
1418 ruby : [ '2.7', '3.0', '3.1', '3.2', '3.3' ]
1519 protocol : [ 'json', 'msgpack' ]
1620 type : [ 'unit', 'acceptance' ]
1721 steps :
18- - uses : actions/checkout@v2
22+ - uses : actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
1923 with :
2024 submodules : ' recursive'
21- - uses : ruby/setup-ruby@v1
25+ persist-credentials : false
26+ - uses : ruby/setup-ruby@afeafc3d1ab54a631816aba4c914a0081c12ff2f # v1.310.0
2227 with :
2328 ruby-version : ${{ matrix.ruby }}
2429 bundler-cache : true
3136 RUBY_VERSION : ${{ matrix.ruby }}
3237 run : |
3338 mkdir junit
34- bundle exec parallel_rspec --prefix-output-with-test-env-number --first-is-1 -- spec/${{ matrix.type }}
35- - uses : actions/upload-artifact@v4
39+ bundle exec parallel_rspec --prefix-output-with-test-env-number --first-is-1 -- " spec/$TEST_TYPE"
40+ - uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
3641 with :
3742 name : test-results-ruby-${{ matrix.ruby }}-${{ matrix.protocol }}-${{ matrix.type }}
3843 path : |
@@ -41,22 +46,24 @@ jobs:
4146 retention-days : 7
4247 - name : Upload test results
4348 if : always()
44- uses : ably/test-observability-action@v1
49+ uses : ably/test-observability-action@5b61d9c59f356b83426cab1b8243dd8bf03c1bea # v1
4550 with :
4651 server-url : ' https://test-observability.herokuapp.com'
4752 server-auth : ${{ secrets.TEST_OBSERVABILITY_SERVER_AUTH_KEY }}
4853 path : ' junit/'
49- - uses : coverallsapp/github-action@v2
54+ - uses : coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2
5055 with :
5156 github-token : ${{ secrets.GITHUB_TOKEN }}
5257 flag-name : ruby-${{ matrix.ruby }}-${{ matrix.protocol }}-${{ matrix.type }}
5358 parallel : true
5459 finish :
5560 needs : check
5661 runs-on : ubuntu-latest
62+ permissions :
63+ contents : read
5764 steps :
5865 - name : Coveralls Finished
59- uses : coverallsapp/github-action@v2
66+ uses : coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2
6067 with :
6168 github-token : ${{ secrets.github_token }}
6269 parallel-finished : true
0 commit comments