feat: use environment variables to customize BinName, AppName, and De… #31
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: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test: | |
name: Test | |
strategy: | |
fail-fast: false | |
matrix: | |
go-version: [1.22.x] | |
os: [ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os}} | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Fetch Repository | |
uses: actions/checkout@v2 | |
- name: Make Ready | |
run: | | |
go version | |
go env | |
go get -t -v ./... | |
git rev-parse --short HEAD | |
- name: Run Vet | |
run: go vet ./... | |
- name: Run Test | |
run: go test -v -cover -covermode=atomic ./... |