This repository has been archived by the owner on Jan 17, 2025. It is now read-only.
chore: fix build workflow #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pull request | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
lint: | |
name: Lint Go | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- name: Setup go | |
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5 | |
with: | |
go-version-file: "./go.mod" | |
cache: false | |
- name: Install | |
run: | | |
go install github.com/gordonklaus/ineffassign@latest | |
go install honnef.co/go/tools/cmd/staticcheck@latest | |
go install github.com/kisielk/errcheck@latest | |
go install github.com/google/go-licenses@latest | |
- name: format | |
if: always() | |
run: test -z $(gofmt -l ./.. | grep -v vendor) | |
- name: vet | |
if: always() | |
run: go vet ./... | |
- name: errcheck | |
if: always() | |
run: errcheck ./... | |
- name: ineffassign | |
if: always() | |
run: ineffassign ./... | |
- name: staticcheck | |
if: always() | |
run: staticcheck ./... | |
- name: license | |
if: always() | |
run: go-licenses check --ignore github.com/bradenrayhorn/ced --confidence_threshold 0.85 ./... | |