Update README.md #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.17 | |
- name: Build | |
#run: go build -v ./... | |
run: go install | |
- name: Test | |
#run: go test -v ./... | |
run: | | |
go test -v -cover ./... -coverprofile coverage.out -coverpkg ./... | |
go tool cover -func coverage.out -o coverage.out # Replaces coverage.out with the analysis of coverage.out | |
- name: Check Server API | |
run: ./test.sh |