-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: upgrade kubernetes packages to 0.26.0 (#8)
* chore: upgrade kubernetes packages to 0.26.0 * add e2e test * add e2e test * update e2e test * serialize the ci jobs
- Loading branch information
Showing
4 changed files
with
127 additions
and
237 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,7 @@ on: | |
branches: [ main ] | ||
|
||
jobs: | ||
|
||
build: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -41,9 +40,37 @@ jobs: | |
# Optional: if set to true then the action don't cache or restore ~/.cache/go-build. | ||
# skip-build-cache: true | ||
|
||
- name: codecov | ||
uses: codecov/codecov-action@v2 | ||
with: | ||
flags: unittests | ||
fail_ci_if_error: true | ||
files: coverage.out | ||
# Run E2E test against all kubernetes versions on kind | ||
e2e-test: | ||
runs-on: ubuntu-latest | ||
needs: lint | ||
strategy: | ||
matrix: | ||
k8s: | ||
- 1.24.0 | ||
- 1.25.0 | ||
- 1.26.0 | ||
fail-fast: false | ||
steps: | ||
- name: Check out the code | ||
uses: actions/checkout@v3 | ||
- name: Create k8s Kind Cluster | ||
uses: helm/[email protected] | ||
- name: Run E2E test | ||
run: | | ||
go test -v -coverprofile=coverage.out . | ||
codecov: | ||
runs-on: ubuntu-latest | ||
needs: e2e-test | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.17 | ||
- name: codecov | ||
uses: codecov/codecov-action@v2 | ||
with: | ||
flags: unittests | ||
fail_ci_if_error: true | ||
files: coverage.out |
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
Oops, something went wrong.