Fix etcd test with new output values #2
Workflow file for this run
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: Integration Test Coverage | |
on: | |
push: | |
paths-ignore: | |
- "**.md" | |
- "channel.yaml" | |
- "install.sh" | |
- "tests/**" | |
- "!tests/integration**" | |
- ".github/**" | |
- "!.github/workflows/integration.yaml" | |
pull_request: | |
paths-ignore: | |
- "**.md" | |
- "channel.yaml" | |
- "install.sh" | |
- "tests/**" | |
- "!tests/integration**" | |
- "!tests/e2e**" | |
- ".github/**" | |
- "!.github/workflows/integration.yaml" | |
workflow_dispatch: {} | |
permissions: | |
contents: read | |
jobs: | |
build: | |
name: Build RKE2 Images and Binary | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.21.6' | |
check-latest: true | |
cache: true | |
cache-dependency-path: | | |
**/go.sum | |
**/go.mod | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Install OS Packages | |
run: sudo apt-get install -y libarchive-tools | |
- name: Build RKE2 Binary and Runtime Image | |
run: | | |
make build-binary | |
make package-image-runtime | |
cp ./bin/rke2 ./build/images/rke2-binary | |
# Can only upload from a single path, so we need to copy the binary to the image directory | |
- name: Upload RKE2 Binary and Runtime Image | |
uses: actions/upload-artifact@v4 | |
with: | |
name: rke2-test-artifacts | |
path: ./build/images/* | |
test: | |
needs: build | |
name: Integration Tests | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 45 | |
strategy: | |
fail-fast: false | |
matrix: | |
itest: [etcdsnapshot] | |
max-parallel: 3 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Setup Build Directories | |
run: | | |
mkdir -p ./bin ./build/images | |
mkdir -p /var/lib/rancher/rke2/agent/images | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.21.6' | |
check-latest: true | |
cache: true | |
cache-dependency-path: | | |
**/go.sum | |
**/go.mod | |
- name: Download RKE2 Binary and Runtime Image | |
uses: actions/download-artifact@v4 | |
with: | |
name: rke2-test-artifacts | |
path: ./build/images | |
- name: Setup Binary and RKE2 Runtime Image | |
run: | | |
mkdir -p /var/lib/rancher/rke2/agent/images | |
mv ./build/images/rke2-binary ./bin/rke2 | |
mv ./build/images/* /var/lib/rancher/rke2/agent/images | |
- name: Run Integration Tests | |
run: | | |
chmod +x ./bin/rke2 | |
sudo -E env "PATH=$PATH" go test -v -timeout=45m ./tests/integration/${{ matrix.itest }}/... -run Integration |