Skip to content

Commit

Permalink
Update go test pipeline to build and test all libraries (#220)
Browse files Browse the repository at this point in the history
There were few libraries CI missing. So, added them.
  • Loading branch information
sjs994 committed Dec 21, 2022
1 parent b8c31ec commit 2e81d30
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions .github/workflows/go-sql-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

0 comments on commit 2e81d30

Please sign in to comment.