Skip to content

Commit

Permalink
Update workflow to use artifact actions v4, update actions/cache from…
Browse files Browse the repository at this point in the history
… v2 to v4, and replaced archived actions/setup-ruby with ruby/setup-ruby

Signed-off-by: Joyce Quach <[email protected]>
  • Loading branch information
jtquach1 committed Dec 12, 2024
1 parent 35f25dd commit 3c1dc60
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/verify-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Check out code
uses: actions/checkout@v2
- name: Setup Ruby
uses: actions/setup-ruby@v1
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
- name: Setup caching
Expand Down Expand Up @@ -56,6 +56,6 @@ jobs:
- name: Ensure the scan meets our ${{ matrix.suite }} results threshold
run: bundle exec inspec_tools compliance -j spec/results/${{ matrix.suite }}-test-result.json -f threshold.${{ matrix.suite }}.yml
- name: Save Test Result JSON
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
path: spec/results
6 changes: 3 additions & 3 deletions .github/workflows/verify-vagrant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ jobs:
- name: Check out repository
uses: actions/checkout@v2
- name: Setup Ruby
uses: actions/setup-ruby@v1
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
- name: Disable ri and rdoc
run: 'echo "gem: --no-ri --no-rdoc" >> ~/.gemrc'
- name: Setup caching
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
Expand All @@ -56,6 +56,6 @@ jobs:
- name: Ensure the scan meets our ${{ matrix.suite }} results threshold
run: bundle exec inspec_tools compliance -j spec/results/${{ matrix.suite }}-test-result.json -f threshold.${{ matrix.suite }}.yml
- name: Save Test Result JSON
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
path: spec/results

0 comments on commit 3c1dc60

Please sign in to comment.