forked from k3s-io/k3s
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Derek Nola <[email protected]>
- Loading branch information
Showing
9 changed files
with
104 additions
and
21 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
name: E2E Test Coverage | ||
on: | ||
push: | ||
paths-ignore: | ||
- "**.md" | ||
- "channel.yaml" | ||
- "install.sh" | ||
- "tests/**" | ||
- "!tests/e2e**" | ||
- ".github/**" | ||
- "!.github/workflows/e2e.yaml" | ||
pull_request: | ||
paths-ignore: | ||
- "**.md" | ||
- "channel.yaml" | ||
- "install.sh" | ||
- "tests/**" | ||
- "!tests/e2e**" | ||
- ".github/**" | ||
- "!.github/workflows/e2e.yaml" | ||
workflow_dispatch: {} | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
uses: ./.github/workflows/build-k3s.yaml | ||
test: | ||
name: "E2E Test" | ||
needs: build | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 40 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# TODO fix embeddedmirror and add it to the matrix | ||
etest: [startup, s3, externalip, privateregistry] | ||
max-parallel: 3 | ||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v4 | ||
with: {fetch-depth: 1} | ||
|
||
- name: Set up vagrant and libvirt | ||
uses: ./.github/actions/vagrant-setup | ||
- name: "Vagrant Cache" | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.vagrant.d/boxes | ||
key: vagrant-box-${{ matrix.vm }} | ||
- name: "Vagrant Plugin(s)" | ||
run: vagrant plugin install vagrant-k3s vagrant-reload vagrant-scp | ||
|
||
- name: Install Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: 'go.mod' | ||
cache: false | ||
- name: "Download k3s binary" | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: k3s | ||
path: ./dist/artifacts | ||
|
||
- name: Run E2E Tests | ||
env: | ||
E2E_GOCOVER: "true" | ||
run: | | ||
chmod +x ./dist/artifacts/k3s | ||
cd tests/e2e/${{ matrix.etest }} | ||
go test -v -timeout=45m ./${{ matrix.etest}}_test.go -ci -local | ||
- name: On Failure, Launch Debug Session | ||
uses: lhotari/action-upterm@v1 | ||
if: ${{ failure() }} | ||
with: | ||
## If no one connects after 5 minutes, shut down server. | ||
wait-timeout-minutes: 5 | ||
- name: Upload Results To Codecov | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: tests/e2e/${{ matrix.etest }}/coverage.out | ||
flags: e2etests # optional | ||
verbose: true # optional (default = false) |
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
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
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
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
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
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
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