Skip to content

Update github action to use the latest stable version #99

Update github action to use the latest stable version

Update github action to use the latest stable version #99

Workflow file for this run

name: Go
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go stable version
uses: actions/setup-go@v4
with:
go-version: 'stable'
with:

Check failure on line 14 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: 14, Col: 7): 'with' is already defined
cache: false
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Get dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Build
run: |
go generate ./bus/...
go generate ./meta/...
go generate ./type/...
go generate ./examples/...
go build ./...
- name: Test
run: |
go vet -composites=false ./...
go test ./... -race