Clean Releases #1
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: Run Tests | |
on: | |
push: | |
branches: | |
- master | |
- main | |
pull_request: | |
branches: | |
- master | |
- main | |
jobs: | |
test: | |
name: Code Linting & Unit Tests | |
strategy: | |
matrix: | |
go-version: | |
- 1.21.x | |
os: | |
- ubuntu-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: '0' | |
- name: Install Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Linting Code | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.53 | |
args: --timeout=10m0s | |
- name: Run Go Tests | |
run: go test -v ./... | |
- name: Build All Binaries | |
run: go build ./... |