From 7902f121c41f8bb18e2f1f080da887211129a23c Mon Sep 17 00:00:00 2001 From: Subhrajyoti Date: Tue, 20 Dec 2022 13:07:16 +0530 Subject: [PATCH] Update go test pipeline to build and test all libraries There were few libraries CI missing. So, added them. --- .github/workflows/go-sql-tests.yaml | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go-sql-tests.yaml b/.github/workflows/go-sql-tests.yaml index 5f081e3a..d1b4c9cf 100644 --- a/.github/workflows/go-sql-tests.yaml +++ b/.github/workflows/go-sql-tests.yaml @@ -21,11 +21,35 @@ jobs: with: go-version: 1.19 - - name: Build + - name: Build core + run: go build -v ./... + working-directory: ./go/core + + - name: Test core + run: go test -v ./... + working-directory: ./go/core + + - name: Build net/http + run: go build -v ./... + working-directory: ./go/net/http + + - name: Test net/http + run: go test -v ./... + working-directory: ./go/net/http + + - name: Build gorilla/mux + run: go build -v ./... + working-directory: ./go/gorrila/mux + + - name: Test gorilla/mux + run: go test -v ./... + working-directory: ./go/gorrila/mux + + - name: Build database/sql run: go build -v ./... working-directory: ./go/database/sql - - name: Test go-sql + - name: Test database/sql run: go test -v ./... working-directory: ./go/database/sql @@ -42,4 +66,3 @@ jobs: # Verify go fmt standards are used - name: Format run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi -