From de0506496de624f2b2a46cb6a7e222cf7d758af6 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 1 Feb 2023 18:27:28 +0800 Subject: [PATCH] [_] --- .github/workflows/pr-test.yml | 6 ------ .github/workflows/unit-test.yml | 6 ------ Makefile | 29 ----------------------------- 3 files changed, 41 deletions(-) diff --git a/.github/workflows/pr-test.yml b/.github/workflows/pr-test.yml index df27fc4e..e4dfd0f4 100644 --- a/.github/workflows/pr-test.yml +++ b/.github/workflows/pr-test.yml @@ -229,12 +229,6 @@ jobs: run: | make test - - name: Run widgets test - env: - YAO_ROOT: ${{ env.DEMO_APP }} - run: | - make test-widgets - - name: Codecov Report uses: codecov/codecov-action@v2 with: diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index b2fc608e..47dee796 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -184,12 +184,6 @@ jobs: run: | make test - - name: Run widgets test - env: - YAO_ROOT: ${{ env.DEMO_APP }} - run: | - make test-widgets - - name: Codecov Report uses: codecov/codecov-action@v2 with: diff --git a/Makefile b/Makefile index 0020f50f..66d29d45 100644 --- a/Makefile +++ b/Makefile @@ -40,35 +40,6 @@ test: fi; \ done -# # Unit Test -# .PHONY: test-widgets -# test-widgets: -# echo "mode: count" > coverage.out -# for d in $(TESTWIDGETS); do \ -# $(GO) test -tags $(TESTTAGS) -v -covermode=count -coverprofile=profile.out -coverpkg=$$(echo $$d | sed "s/\/test$$//g") $$d > tmp.out; \ -# cat tmp.out; \ -# if grep -q "^--- FAIL" tmp.out; then \ -# rm tmp.out; \ -# exit 1; \ -# elif grep -q "build failed" tmp.out; then \ -# rm tmp.out; \ -# exit 1; \ -# elif grep -q "setup failed" tmp.out; then \ -# rm tmp.out; \ -# exit 1; \ -# elif grep -q "runtime error" tmp.out; then \ -# rm tmp.out; \ -# exit 1; \ -# fi; \ -# if [ -f profile.out ]; then \ -# cat profile.out | grep -v "mode:" >> coverage.out; \ -# rm profile.out; \ -# fi; \ -# done - -# .PHONY: fmt -# fmt: -# $(GOFMT) -w $(GOFILES) .PHONY: fmt-check fmt-check: