From 0806714bc3a655072a08d05dd3a844364faccddb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20L=C3=B6nnegren?= Date: Fri, 2 Feb 2024 09:46:54 +0100 Subject: [PATCH] Bump github actions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update the following actions: * actions/checkout -> v4 * actions/setup-go -> v5 * actions/upload-artifact -> v4 * actions/cache/save -> v4 * actions/cache/restore -> v4 Signed-off-by: Fredrik Lönnegren --- .github/dependabot.yml | 7 +++++ .github/workflows/build_and_test_arm.yaml | 36 +++++++++++++---------- .github/workflows/build_and_test_x86.yaml | 36 +++++++++++++---------- .github/workflows/cli.yaml | 4 +-- .github/workflows/docs-publish.yaml | 2 +- .github/workflows/release.yaml | 6 ++-- 6 files changed, 53 insertions(+), 38 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 13ed2f6f84a..da17147badc 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -9,3 +9,10 @@ updates: - dependency-type: "direct" labels: - dependencies + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + labels: + - dependencies diff --git a/.github/workflows/build_and_test_arm.yaml b/.github/workflows/build_and_test_arm.yaml index a161641e4df..a8d77ba2d96 100644 --- a/.github/workflows/build_and_test_arm.yaml +++ b/.github/workflows/build_and_test_arm.yaml @@ -23,12 +23,12 @@ jobs: FLAVOR: ${{ inputs.flavor }} ARCH: aarch64 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - run: | git fetch --prune --unshallow - name: Cached ISO id: cache-iso - uses: actions/cache/restore@v3 + uses: actions/cache/restore@v4 env: cache-name: pr-iso-build-aarch64-${{ inputs.flavor }} enableCrossOsArchive: true @@ -48,7 +48,7 @@ jobs: - if: ${{ steps.cache-iso.outputs.cache-hit != 'true' }} name: Save ISO id: save-iso - uses: actions/cache/save@v3 + uses: actions/cache/save@v4 env: cache-name: pr-iso-build-aarch64-${{ inputs.flavor }} with: @@ -63,11 +63,11 @@ jobs: FLAVOR: ${{ inputs.flavor }} ARCH: aarch64 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - run: | git fetch --prune --unshallow - name: Checks cached Disk - uses: actions/cache/restore@v3 + uses: actions/cache/restore@v4 id: cache-check env: cache-name: pr-disk-build-aarch64-${{ inputs.flavor }} @@ -92,7 +92,7 @@ jobs: - if: ${{ steps.cache-check.outputs.cache-hit != 'true' }} name: Save cached disk id: cache-disk - uses: actions/cache/save@v3 + uses: actions/cache/save@v4 env: cache-name: pr-disk-build-aarch64-${{ inputs.flavor }} with: @@ -115,9 +115,9 @@ jobs: - test-smoke fail-fast: false steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version-file: go.mod - name: Install deps @@ -127,7 +127,7 @@ jobs: git fetch --prune --unshallow - name: Cached Disk id: cache-disk - uses: actions/cache/restore@v3 + uses: actions/cache/restore@v4 env: cache-name: pr-disk-build-aarch64-${{ inputs.flavor }} with: @@ -139,19 +139,21 @@ jobs: run: | make DISK=/tmp/elemental-${{ env.FLAVOR }}.${{ env.ARCH}}.qcow2 ELMNTL_ACCEL=none ELMNTL_MACHINETYPE=virt ELMNTL_TARGETARCH=${{ env.ARCH }} ELMNTL_FIRMWARE=/usr/share/AAVMF/AAVMF_CODE.fd ${{ matrix.test }} - name: Upload serial console for ${{ matrix.test }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: always() with: name: serial-${{ env.ARCH }}-${{ env.FLAVOR }}-${{ matrix.test }}.log path: tests/serial.log if-no-files-found: error + overwrite: true - name: Upload qemu stdout for ${{ matrix.test }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: failure() with: name: vmstdout-${{ env.ARCH }}-${{ env.FLAVOR }}-${{ matrix.test }}.log path: tests/vmstdout if-no-files-found: error + overwrite: true - name: Stop test VM if: always() run: | @@ -167,9 +169,9 @@ jobs: ARCH: aarch64 COS_TIMEOUT: 1600 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version-file: go.mod - name: Install deps @@ -179,7 +181,7 @@ jobs: git fetch --prune --unshallow - name: Cached ISO id: cache-iso - uses: actions/cache/restore@v3 + uses: actions/cache/restore@v4 env: cache-name: pr-iso-build-aarch64-${{ inputs.flavor }} with: @@ -191,19 +193,21 @@ jobs: run: | make ISO=/tmp/elemental-${{ env.FLAVOR }}.${{ env.ARCH}}.iso ELMNTL_ACCEL=none ELMNTL_MACHINETYPE=virt ELMNTL_TARGETARCH=${{ env.ARCH }} ELMNTL_FIRMWARE=/usr/share/AAVMF/AAVMF_CODE.fd test-installer - name: Upload serial console for installer tests - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: always() with: name: serial-${{ env.ARCH }}-${{ env.FLAVOR }}-installer.log path: tests/serial.log if-no-files-found: error + overwrite: true - name: Upload qemu stdout for installer tests - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: failure() with: name: vmstdout-${{ env.ARCH }}-${{ env.FLAVOR }}-installer.log path: tests/vmstdout if-no-files-found: error + overwrite: true - name: Stop test VM if: always() run: | diff --git a/.github/workflows/build_and_test_x86.yaml b/.github/workflows/build_and_test_x86.yaml index 2ce6adff64d..701e3014241 100644 --- a/.github/workflows/build_and_test_x86.yaml +++ b/.github/workflows/build_and_test_x86.yaml @@ -36,12 +36,12 @@ jobs: FLAVOR: ${{ inputs.flavor }} ARCH: x86_64 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - run: | git fetch --prune --unshallow - name: Cached ISO id: cache-iso - uses: actions/cache/restore@v3 + uses: actions/cache/restore@v4 env: cache-name: pr-iso-build-x86_64-${{ inputs.flavor }} enableCrossOsArchive: true @@ -61,7 +61,7 @@ jobs: - if: ${{ steps.cache-iso.outputs.cache-hit != 'true' }} name: Save ISO id: save-iso - uses: actions/cache/save@v3 + uses: actions/cache/save@v4 env: cache-name: pr-iso-build-x86_64-${{ inputs.flavor }} with: @@ -76,11 +76,11 @@ jobs: FLAVOR: ${{ inputs.flavor }} ARCH: x86_64 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - run: | git fetch --prune --unshallow - name: Checks cached Disk - uses: actions/cache/restore@v3 + uses: actions/cache/restore@v4 id: cache-check env: cache-name: pr-disk-build-x86_64-${{ inputs.flavor }} @@ -109,7 +109,7 @@ jobs: - if: ${{ steps.cache-check.outputs.cache-hit != 'true' }} name: Save cached disk id: cache-disk - uses: actions/cache/save@v3 + uses: actions/cache/save@v4 env: cache-name: pr-disk-build-x86_64-${{ inputs.flavor }} with: @@ -131,9 +131,9 @@ jobs: test: ${{ fromJson(needs.detect.outputs.tests) }} fail-fast: false steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version-file: go.mod - name: Install deps @@ -143,7 +143,7 @@ jobs: git fetch --prune --unshallow - name: Cached Disk id: cache-disk - uses: actions/cache/restore@v3 + uses: actions/cache/restore@v4 env: cache-name: pr-disk-build-x86_64-${{ inputs.flavor }} with: @@ -158,19 +158,21 @@ jobs: run: | make DISK=/tmp/elemental-${{ env.FLAVOR }}.${{ env.ARCH}}.qcow2 ELMNTL_ACCEL=hvf ELMNTL_TARGETARCH=${{ env.ARCH }} ELMNTL_FIRMWARE=$(find /usr/local/Cellar/qemu -name edk2-${{ env.ARCH }}-code.fd -print -quit) ${{ matrix.test }} - name: Upload serial console for ${{ matrix.test }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: always() with: name: serial-${{ env.ARCH }}-${{ env.FLAVOR }}-${{ matrix.test }}.log path: tests/serial.log if-no-files-found: error + overwrite: true - name: Upload qemu stdout for ${{ matrix.test }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: failure() with: name: vmstdout-${{ env.ARCH }}-${{ env.FLAVOR }}-${{ matrix.test }}.log path: tests/vmstdout if-no-files-found: error + overwrite: true - name: Stop test VM if: always() run: | @@ -186,9 +188,9 @@ jobs: ARCH: x86_64 COS_TIMEOUT: 1600 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version-file: go.mod - name: Install deps @@ -198,7 +200,7 @@ jobs: git fetch --prune --unshallow - name: Cached ISO id: cache-iso - uses: actions/cache/restore@v3 + uses: actions/cache/restore@v4 env: cache-name: pr-iso-build-x86_64-${{ inputs.flavor }} with: @@ -213,19 +215,21 @@ jobs: run: | make ISO=/tmp/elemental-${{ env.FLAVOR }}.${{ env.ARCH}}.iso ELMNTL_ACCEL=hvf ELMNTL_TARGETARCH=${{ env.ARCH }} ELMNTL_FIRMWARE=$(find /usr/local/Cellar/qemu -name edk2-${{ env.ARCH }}-code.fd -print -quit) test-installer - name: Upload serial console for installer tests - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: always() with: name: serial-${{ env.ARCH }}-${{ env.FLAVOR }}-installer.log path: tests/serial.log if-no-files-found: error + overwrite: true - name: Upload qemu stdout for installer tests - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: failure() with: name: vmstdout-${{ env.ARCH }}-${{ env.FLAVOR }}-installer.log path: tests/vmstdout if-no-files-found: error + overwrite: true - name: Stop test VM if: always() run: | diff --git a/.github/workflows/cli.yaml b/.github/workflows/cli.yaml index 9b0677fc516..25d9f5968e4 100644 --- a/.github/workflows/cli.yaml +++ b/.github/workflows/cli.yaml @@ -17,9 +17,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3.1.0 + uses: actions/checkout@v4 - name: Install Go - uses: actions/setup-go@v3.3.1 + uses: actions/setup-go@v5 with: go-version-file: go.mod - name: Analysis diff --git a/.github/workflows/docs-publish.yaml b/.github/workflows/docs-publish.yaml index d22604feed5..53daeb8b2a3 100644 --- a/.github/workflows/docs-publish.yaml +++ b/.github/workflows/docs-publish.yaml @@ -18,7 +18,7 @@ jobs: submodules: recursive fetch-depth: 0 - name: Install Go - uses: actions/setup-go@v3.3.1 + uses: actions/setup-go@v5 with: go-version-file: go.mod - name: Setup Hugo diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 633bc6f908d..2b2bf25dd57 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -16,11 +16,11 @@ jobs: COSIGN_EXPERIMENTAL: 1 steps: - name: Checkout - uses: actions/checkout@v3.1.0 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Go - uses: actions/setup-go@v3.3.1 + uses: actions/setup-go@v5 with: go-version-file: go.mod - name: Set up cosign @@ -36,7 +36,7 @@ jobs: release-images: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Login to GitHub Container Registry uses: docker/login-action@v2 with: