* silence lint errors in certain errchecks * golangci-lint: skip go installation step * silence lint error in ResponseWriter Write call Fixes #13absences
parent
99d527f83e
commit
ad22f31bcd
@ -0,0 +1,22 @@
|
||||
name: GitHub Actions Demo
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: 1.19
|
||||
- uses: actions/checkout@v3
|
||||
- name: "fmt"
|
||||
run: test -z $(go fmt ./...)
|
||||
- name: lint
|
||||
uses: golangci/golangci-lint-action@v3
|
||||
with:
|
||||
version: latest
|
||||
skip-go-intallation: true
|
||||
skip-pkg-cache: true
|
||||
skip-build-cache: true
|
||||
args: --timeout 2m
|
||||
- name: test
|
||||
run: go test ./...
|
Loading…
Reference in new issue