From 34845a022d050eb78812d1dee553d1ca5e4a6ff4 Mon Sep 17 00:00:00 2001 From: Reinaldy Rafli Date: Fri, 9 Jul 2021 19:13:54 +0700 Subject: [PATCH] ci: test for go --- .github/workflows/api.yml | 3 +++ .github/workflows/coverage.yml | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) delete mode 100644 .github/workflows/coverage.yml diff --git a/.github/workflows/api.yml b/.github/workflows/api.yml index 2c7a361..5875dc7 100644 --- a/.github/workflows/api.yml +++ b/.github/workflows/api.yml @@ -39,6 +39,9 @@ jobs: - name: Build run: go build ./ + + - name: Run test & coverage + run: go test -v -race -coverprofile=coverage.out -covermode=atomic -failfast ./... - name: Initialize CodeQL uses: github/codeql-action/init@v1 diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml deleted file mode 100644 index 6634f95..0000000 --- a/.github/workflows/coverage.yml +++ /dev/null @@ -1 +0,0 @@ -# This will be from codecov \ No newline at end of file