From b63261cf8dc453af93d86f278c8afece44880399 Mon Sep 17 00:00:00 2001 From: Joyce Quach Date: Thu, 12 Dec 2024 17:58:23 -0500 Subject: [PATCH 1/3] Update workflow to use artifact actions v4, update actions/cache from v2 to v4, and replaced archived actions/setup-ruby with ruby/setup-ruby Signed-off-by: Joyce Quach --- .github/workflows/verify-vagrant.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/verify-vagrant.yml b/.github/workflows/verify-vagrant.yml index 9a36320..1d31c7e 100644 --- a/.github/workflows/verify-vagrant.yml +++ b/.github/workflows/verify-vagrant.yml @@ -23,13 +23,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') }} @@ -50,7 +50,7 @@ jobs: cd test/cookbooks/Win10MySQLOverlay/ bundle exec inspec_tools summary -j ${{ matrix.suite }}-test-results.json --json-counts | jq . - name: Save Test Result JSON - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: path: test/cookbooks/Win10MySQLOverlay/*-results.json if-no-files-found: error From 1c7721e17742afb7291e3ee17fe1c673b5b45bd2 Mon Sep 17 00:00:00 2001 From: Joyce Quach Date: Tue, 31 Dec 2024 13:48:00 -0500 Subject: [PATCH 2/3] Add flag required in v4 for overwriting existing artifact, which otherwise didn't exist in v3 but behavior has Signed-off-by: Joyce Quach --- .github/workflows/verify-vagrant.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/verify-vagrant.yml b/.github/workflows/verify-vagrant.yml index 1d31c7e..fe23281 100644 --- a/.github/workflows/verify-vagrant.yml +++ b/.github/workflows/verify-vagrant.yml @@ -54,3 +54,5 @@ jobs: with: path: test/cookbooks/Win10MySQLOverlay/*-results.json if-no-files-found: error + name: ${{ matrix.suite }}-results + overwrite: true \ No newline at end of file From d0b761008f9ab9f5aac7af9089a16254abba0f3c Mon Sep 17 00:00:00 2001 From: Joyce Quach Date: Tue, 31 Dec 2024 16:24:19 -0500 Subject: [PATCH 3/3] Remove overwrite: true flag Signed-off-by: Joyce Quach --- .github/workflows/verify-vagrant.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/verify-vagrant.yml b/.github/workflows/verify-vagrant.yml index fe23281..2f76415 100644 --- a/.github/workflows/verify-vagrant.yml +++ b/.github/workflows/verify-vagrant.yml @@ -55,4 +55,3 @@ jobs: path: test/cookbooks/Win10MySQLOverlay/*-results.json if-no-files-found: error name: ${{ matrix.suite }}-results - overwrite: true \ No newline at end of file