Skip to content

Update action

Update action #11

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Format
run: |
go install mvdan.cc/gofumpt@latest
gofumpt -l -w .
git diff --exit-code
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
- name: Test
run: go test -v ./...