Skip to content

GitHub actions

GitHub actions #1

name: Lint
on:
push:
branches:
- main
pull_request:
env:
GO_VERSION: "1.21.7"
jobs:
lint:
name: Lint
runs-on: ubuntu-20.04
steps:
- uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.56.2
working-directory: .
args: --timeout 5m
- name: Install license check
run: go install github.com/google/addlicense@v1.0.0
- name: Check license
run: addlicense -f ./LICENSE.header -check -v ./**/*.go ./**/**/*.go ./**/**/**/*.go ./**/**/**/**/*.go