-
Notifications
You must be signed in to change notification settings - Fork 432
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2d8196c
commit f6f99e0
Showing
1 changed file
with
49 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Unit tests copy | ||
|
||
on: | ||
release: | ||
types: [created] | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- "**.go" | ||
- "!test/**" # exclude changes in e2e tests | ||
- ".github/workflows/unit-tests.yaml" | ||
- "hack/test.sh" | ||
- "charts/**" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
helm-unit-tests: | ||
name: Execute all helm tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install Helm Unit Test Plugin | ||
run: | | ||
helm plugin install https://github.com/helm-unittest/helm-unittest | ||
- name: Run Helm Unit Tests | ||
run: | | ||
helm unittest charts/eks -d | ||
helm unittest charts/k3s -d | ||
helm unittest charts/k0s -d | ||
helm unittest charts/k8s -d | ||
go-unit-test: | ||
name: Execute all go tests | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Set up Go 1.21 | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.21" | ||
cache: false | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v4 | ||
- name: Execute unit tests | ||
run: ./hack/test.sh |