-
Notifications
You must be signed in to change notification settings - Fork 907
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: remove unuse ghaction step and collect logs of karmadactl test.
Signed-off-by: Lan Liang <[email protected]>
- Loading branch information
1 parent
4898c0f
commit 731aa57
Showing
2 changed files
with
36 additions
and
9 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 |
---|---|---|
|
@@ -34,9 +34,6 @@ jobs: | |
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: go.mod | ||
- uses: helm/[email protected] | ||
with: | ||
version: "v0.20.0" | ||
- name: run karmadactl init test | ||
run: | | ||
export CLUSTER_VERSION=kindest/node:${{ matrix.k8s }} | ||
|
@@ -48,11 +45,18 @@ jobs: | |
export KUBECONFIG=${HOME}/karmada/karmada-apiserver.config | ||
GO111MODULE=on go install github.com/onsi/ginkgo/v2/ginkgo | ||
ginkgo -v --race --trace -p --focus="[BasicPropagation] propagation testing deployment propagation testing" ./test/e2e/ | ||
- uses: chainguard-dev/actions/kind-diag@main | ||
# Only upload logs on failure. | ||
if: ${{ failure() }} | ||
- name: export logs | ||
if: always() | ||
run: | | ||
export ARTIFACTS_PATH=${{ github.workspace }}/karmadactl-test-logs/${{ matrix.k8s }}/ | ||
mkdir -p $ARTIFACTS_PATH | ||
mkdir -p $ARTIFACTS_PATH/karmada-host | ||
kind export logs --name=karmada-host $ARTIFACTS_PATH/karmada-host | ||
- name: upload logs | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
cluster-resources: nodes,namespaces, | ||
namespace-resources: configmaps,pods,svc | ||
artifact-name: logs-${{ matrix.k8s}} | ||
name: karmadactl_test_logs_${{ matrix.k8s }} | ||
path: ${{ github.workspace }}/karmadactl-test-logs/${{ matrix.k8s }}/ | ||
|
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