Skip to content

Use Go version in go.mod #753

Use Go version in go.mod

Use Go version in go.mod #753

Workflow file for this run

name: go
on:
push:
branches:
- master
paths:
- .github/workflows/go.yaml
- pkg/**
- go.*
pull_request:
branches:
- master
paths:
- .github/workflows/go.yaml
- pkg/**
- go.*
jobs:
check:
uses: int128/go-workflows/.github/workflows/[email protected]

Check failure on line 21 in .github/workflows/go.yaml

View workflow run for this annotation

GitHub Actions / go

Invalid workflow file

The workflow is not valid. .github/workflows/go.yaml (Line: 21, Col: 11): Input go-version is required, but not provided while calling. .github/workflows/go.yaml (Line: 23, Col: 24): Invalid input, go-version-file is not defined in the referenced workflow.
with:
go-version-file: go.mod
golangci-lint-version: v1.55.2
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- run: go test -v -race ./...