@@ -40,23 +40,26 @@ jobs:
4040 - ' 3.0.7'
4141 - ' 2.7.8'
4242 steps :
43- - uses : actions/checkout@v3
44- - name : Set up Ruby ${{ matrix.ruby }}
45- uses : ruby/setup-ruby@v1
46- with :
47- ruby-version : ${{ matrix.ruby }}
48- bundler-cache : true
49- - name : Run the default task
50- run : bundle exec rake
51- - name : Artifact coverage
52- if : ${{ ! cancelled() }}
53- # see https://github.com/actions/upload-artifact
54- uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
55- with :
56- name : ' ${{ env.TESTS_COVERAGE_ARTIFACT }}_ruby${{ matrix.ruby }}'
57- path : ${{ env.COVERAGE_DIR }}
58- if-no-files-found : error
59- retention-days : 7
43+ - name : Checkout Code
44+ # see https://github.com/actions/checkout
45+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
46+ - name : Set up Ruby ${{ matrix.ruby }}
47+ # see https://github.com/ruby/setup-ruby
48+ uses : ruby/setup-ruby@afeafc3d1ab54a631816aba4c914a0081c12ff2f # v1.310.0
49+ with :
50+ ruby-version : ${{ matrix.ruby }}
51+ bundler-cache : true
52+ - name : Run the default task
53+ run : bundle exec rake
54+ - name : Artifact coverage
55+ if : ${{ ! cancelled() }}
56+ # see https://github.com/actions/upload-artifact
57+ uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
58+ with :
59+ name : ' ${{ env.TESTS_COVERAGE_ARTIFACT }}_ruby${{ matrix.ruby }}'
60+ path : ${{ env.COVERAGE_DIR }}
61+ if-no-files-found : error
62+ retention-days : 7
6063 report-coverage :
6164 name : Publish test coverage
6265 needs : [ "test" ]
0 commit comments