fix: GA v1 Go SDK (#90) #311
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 | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
GOPATH: /home/runner/go | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.21 | |
- name: Check License Headers | |
run: make license-header-check | |
- name: Run Tests | |
run: make test-ci | |
- name: Check Licenses | |
run: make license-check | |
# Upload coverage report if main is set | |
- name: Upload Coverage Report | |
uses: codecov/codecov-action@v2 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos | |
files: all.coverprofile # optional | |
flags: unittests # optional | |
fail_ci_if_error: true # optional (default = false) |