Skip to content

Add workflow_dispatch event to GitHub Actions #12

Add workflow_dispatch event to GitHub Actions

Add workflow_dispatch event to GitHub Actions #12

Workflow file for this run

name: Format and Vet
on: [push]
jobs:
lint_format_and_vet:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19.x
- name: Go format check
run: if [ "$(gofmt -d -l $(find . -type f -name '*.go'| grep -v "/vendor/\|/.git/") | wc -l)" -gt 0 ]; then exit 1; fi
- name: Check go vet
run: go vet ./...