fix(deps): update all non-major dependencies #496
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Zarf Upgrade | |
on: | |
pull_request: | |
paths-ignore: | |
- "**.md" | |
- "**.jpg" | |
- "**.png" | |
- "**.gif" | |
- "**.svg" | |
- "adr/**" | |
- "docs/**" | |
- "package.json" | |
- "package-lock.json" | |
- "CODEOWNERS" | |
permissions: | |
contents: read | |
# Abort prior jobs in the same workflow / PR | |
concurrency: | |
group: e2e-upgrade-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | |
- name: Setup golang | |
uses: ./.github/actions/golang | |
- name: Setup NodeJS | |
uses: ./.github/actions/node | |
- name: Install release version of Zarf | |
uses: defenseunicorns/setup-zarf@main | |
with: | |
download-init-package: true | |
- name: Initialize the cluster with the release version | |
# NOTE: "PATH=$PATH" preserves the default user $PATH. This is needed to maintain the version of zarf installed | |
# in a previous step. This test run will the current release to create a K3s cluster. | |
# chown the logs since they were originally created as root | |
run: | | |
sudo env "PATH=$PATH" CI=true zarf init --components k3s,git-server,logging --confirm | |
sudo chown $USER /tmp/zarf-*.log | |
- name: Create the upgrade test packages | |
# NOTE: "PATH=$PATH" preserves the default user $PATH. This is needed to maintain the version of zarf installed | |
# in a previous step. This test run will the current release to create a K3s cluster. | |
# chown the logs since they were originally created as root | |
run: | | |
zarf package create src/test/upgrade-test --set PODINFO_VERSION=6.3.3 --confirm | |
zarf package create src/test/upgrade-test --set PODINFO_VERSION=6.3.4 --confirm | |
sudo env "PATH=$PATH" CI=true zarf package deploy zarf-package-test-upgrade-package-amd64-6.3.3.tar.zst --confirm | |
sudo chown $USER /tmp/zarf-*.log | |
- name: Build PR binary and zarf packages | |
uses: ./.github/actions/packages | |
- name: "Run the PR's tests" | |
# NOTE: "PATH=$PATH" preserves the default user $PATH. This is needed to maintain the version of go installed | |
# in a previous step. This test run will use this PR's Zarf to create a K3s cluster. | |
# chown the logs since they were originally created as root | |
run: | | |
sudo env "PATH=$PATH" CI=true APPLIANCE_MODE=true make test-e2e ARCH=amd64 | |
sudo chown $USER /tmp/zarf-*.log | |
- name: Run the upgrade tests | |
# NOTE: "PATH=$PATH" preserves the default user $PATH. This is needed to maintain the version of zarf installed | |
# in a previous step. This test run will the current release to create a K3s cluster. | |
# chown the logs since they were originally created as root | |
run: | | |
sudo env "PATH=$PATH" CI=true make test-upgrade ARCH=amd64 | |
sudo chown $USER /tmp/zarf-*.log | |
- name: Save logs | |
if: always() | |
uses: ./.github/actions/save-logs |