Skip to content

Merge pull request #8 from braswelljr/dependabot/go_modules/github.co… #54

Merge pull request #8 from braswelljr/dependabot/go_modules/github.co…

Merge pull request #8 from braswelljr/dependabot/go_modules/github.co… #54

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@v4
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 ./...