Skip to content

Add versioned tools, run fmt and lint in CI #20

Add versioned tools, run fmt and lint in CI

Add versioned tools, run fmt and lint in CI #20

Workflow file for this run

name: Go
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
golangci-lint-version: v1.46.2
jobs:
build:
name: Build, test and lint
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Set up Go
uses: actions/[email protected]
with:
go-version: 1.22.4
cache-dependency-path: ./go.sum
- name: Build
run: go build .
- name: Test
run: go test ./...
# Disable lint step temporarily. Need to migrate it to tools/go.mod
# - name: Lint
# uses: golangci/golangci-lint-action@v3
# with:
# version: ${{ env.golangci-lint-version }}
- name: Check Format
run: |
make fmt
git diff --exit-code .