Skip to content

Add workflow govulncheck #28

Add workflow govulncheck

Add workflow govulncheck #28

Workflow file for this run

# This file adheres to the YAML5 style.
{
"name": "Go",
"on": ["push", "pull_request"],
"jobs": {
"build": {
"name": "Build",
"runs-on": "ubuntu-latest",
"strategy": {
"matrix": {
"go": ["1.18.x","1.19.x","1.20.x","1.21.x","1.22.x"]
},
},
"steps": [
{
"name": "Set up Go ${{ matrix.go }}",
"uses": "actions/setup-go@v5",
"with": {"go-version": "${{ matrix.go }}" },
"id": "go",
"cache": "true",

Check failure on line 20 in .github/workflows/go.yml

View workflow run for this annotation

GitHub Actions / Go

Invalid workflow file

The workflow is not valid. .github/workflows/go.yml (Line: 20, Col: 11): Unexpected value 'cache' .github/workflows/go.yml (Line: 21, Col: 11): Unexpected value 'cache-dependency-path'
"cache-dependency-path": "**/go.sum",
},
{"name": "Check out code into the Go module directory", "uses": "actions/checkout@v4"},
{"name": "Lint", "run": "make lint"},
{"name": "Test", "run": "make test"},
],
},
},
}