From 7b1cd9da337917acac86d37e7708db18c101f0d4 Mon Sep 17 00:00:00 2001 From: Joe Zou <yixian.zou@gmail.com> Date: Tue, 3 Nov 2020 09:33:53 +0800 Subject: [PATCH] add Makefile into github action --- .github/workflows/github-actions.yml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index 7875ca659..9850bec06 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -50,18 +50,9 @@ jobs: go get -v -t -d ./... fi - - name: License Check + - name: Verify run: | - go fmt ./... && [[ -z `git status -s` ]] - sh before_validate_license.sh - chmod u+x /tmp/tools/license/license-header-checker - /tmp/tools/license/license-header-checker -v -a -r -i vendor /tmp/tools/license/license.txt . go && [[ -z `git status -s` ]] - - - name: Test - run: | - chmod u+x before_ut.sh && ./before_ut.sh - go mod vendor && go test ./... -coverprofile=coverage.txt -covermode=atomic - chmod +x integrate_test.sh && ./integrate_test.sh + make verify - name: Coverage run: bash <(curl -s https://codecov.io/bash) \ No newline at end of file -- GitLab