Skip to content

Merge pull request #2 from ImageMarkup/add-user-agent #23

Merge pull request #2 from ImageMarkup/add-user-agent

Merge pull request #2 from ImageMarkup/add-user-agent #23

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@v4
with:
go-version-file: go.mod
- 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 ./...