Skip to content

Add github workflow to build and test #2

Add github workflow to build and test

Add github workflow to build and test #2

Workflow file for this run

name: Build
on:
push:
branches: [ develop, master ]
pull_request:
branches: [ "develop" ]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: [ '1.19', '1.20', '1.21.x' ]

Check failure on line 18 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Build

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 18, Col: 21): A sequence was not expected
- name: Gomod
run: go mod download
- name: Golint
run: hack/verify-golint.sh
- name: Gofmt
run: hack/verify-gofmt.sh
- name: Go vet
run: hack/verify-govet.sh
- name: Test
run: go test -race -cover ./...