chore: remove env and use vendor native lib in 0.11.x (#397) #1209
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: build-and-test-linux | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- "releases/*" | |
jobs: | |
build-and-test: | |
# Ref: https://github.com/actions/runner-images/tree/main/images/macos | |
strategy: | |
matrix: | |
os: [ ubuntu-20.04, ubuntu-22.04, ubuntu-latest ] | |
cgo: [ '1', '0' ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Go test | |
env: | |
CGO_ENABLED: ${{ matrix.cgo }} | |
run: go test ./... | |
- run: go test -v -coverprofile=profile.cov ./... | |
- uses: shogo82148/actions-goveralls@v1 | |
with: | |
path-to-profile: profile.cov |