docgrouper/.github/workflows/golangci-lint.yml

29 lines
545 B
YAML

name: lint-build-test
on:
push:
branches:
- master
pull_request:
permissions:
contents: read
jobs:
lint-build-test:
name: lint-build-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22"
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: latest
- name: build
run: go build -v ./...
- name: Run tests
run: go test