e2e for workload identity and instance principal auth mechanisms #64
Workflow file for this run
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: Unit Tests | |
on: | |
workflow_call: {} | |
push: | |
branches-ignore: | |
- gh-pages | |
jobs: | |
build-binary-n-test: | |
name: Build Binary locally and run unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.19 | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v3 | |
- name: build the binary | |
run: | | |
go build -mod vendor -o dist/provider ./cmd/server/main.go | |
- name: Run Unit Tests | |
run: | | |
go test -covermode=count -coverprofile=profile.cov ./... | |
- name: Send coverage | |
env: | |
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
GO111MODULE=off go get github.com/mattn/goveralls | |
$(go env GOPATH)/bin/goveralls -coverprofile=profile.cov -service=github |