Skip to content

Commit

Permalink
Merge pull request #18 from mitre/update-artifact-actions-to-v4
Browse files Browse the repository at this point in the history
Update workflow to use artifact actions v4, update actions/cache from…
  • Loading branch information
Amndeep7 authored Jan 15, 2025
2 parents 35f25dd + 45d6a7d commit c89f625
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/verify-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ jobs:
fail-fast: false
steps:
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Ruby
uses: actions/setup-ruby@v1
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
ruby-version: '3.1'
- 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,7 @@ 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:
name: ${{ matrix.suite }}-results
path: spec/results
11 changes: 6 additions & 5 deletions .github/workflows/verify-vagrant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ jobs:
- name: Add jq for output formatting
run: brew install jq
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Ruby
uses: actions/setup-ruby@v1
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
ruby-version: '3.1'
- 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,7 @@ 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:
name: ${{ matrix.suite }}-results
path: spec/results

0 comments on commit c89f625

Please sign in to comment.