Skip to content

Add lint job

Add lint job #71

Workflow file for this run

name: Go
on:
push:
pull_request:
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-22.04
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: 1.21
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Get dependencies
run: go get -v -t -d ./...
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@2023.1.6
- name: Lint
run: staticcheck -checks=all ./...
- name: Test
run: make test
- name: Build
run: make build.all
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
dist/*.tar.gz
dist/*.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}