add more documentation and small refactor #22
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: Tests | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
jobs: | |
test: | |
name: Tests on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-13] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20' | |
- name: Install dependencies | |
run: go get . | |
# - name: Build | |
# run: CGO_ENABLED=1 go build -ldflags "-linkmode external -extldflags '-static' -s -w" -v ./... | |
- name: Test with the Go CLI | |
run: CGO_ENABLED=1 GODEBUG=cgocheck=2 go test |