Skip to content

Merge pull request #10 from braswelljr/dependabot/github_actions/acti… #50

Merge pull request #10 from braswelljr/dependabot/github_actions/acti…

Merge pull request #10 from braswelljr/dependabot/github_actions/acti… #50

Workflow file for this run

name: Go
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.19
- name: Restore Go modules cache
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: go-${{ runner.os }}-${{ hashFiles('go.mod') }}
restore-keys: |
go-${{ runner.os }}-
- name: Download dependencies
run: go mod download
- name: Lint
run: go fmt ./...
- name: Build
run: go build -o ./bin/ ./.
- name: Test
run: go test -race ./...