Skip to content

Add a callback field. Parsing will return error if a required field i… #87

Add a callback field. Parsing will return error if a required field i…

Add a callback field. Parsing will return error if a required field i… #87

name: Build and Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main", "release/v1.0" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Format
run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: latest