chore: update CI

This commit is contained in:
Fernandez Ludovic 2022-05-20 22:42:26 +02:00
parent 81f1fabad4
commit 9b029d53d7
3 changed files with 9 additions and 26 deletions

View file

@ -29,30 +29,8 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
# https://golangci-lint.run/usage/install#other-ci - name: Generate DNS docs
- name: Install golangci-lint ${{ env.GOLANGCI_LINT_VERSION }} run: make generate-dns
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_LINT_VERSION}
golangci-lint --version
- name: Install Pebble and challtestsrv
run: GO111MODULE=off go get -u github.com/letsencrypt/pebble/...
- name: Set up a Memcached server
uses: niden/actions-memcached@v7
- name: Setup /etc/hosts
run: |
echo "127.0.0.1 acme.wtf" | sudo tee -a /etc/hosts
echo "127.0.0.1 lego.wtf" | sudo tee -a /etc/hosts
echo "127.0.0.1 acme.lego.wtf" | sudo tee -a /etc/hosts
echo "127.0.0.1 légô.wtf" | sudo tee -a /etc/hosts
echo "127.0.0.1 xn--lg-bja9b.wtf" | sudo tee -a /etc/hosts
- name: Make
run: |
make
make clean
- name: Install Hugo - name: Install Hugo
run: | run: |

View file

@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
GO_VERSION: 1.18 GO_VERSION: 1.18
GOLANGCI_LINT_VERSION: v1.45.2 GOLANGCI_LINT_VERSION: v1.46.2
HUGO_VERSION: 0.54.0 HUGO_VERSION: 0.54.0
CGO_ENABLED: 0 CGO_ENABLED: 0
LEGO_E2E_TESTS: CI LEGO_E2E_TESTS: CI

View file

@ -53,7 +53,11 @@
"maligned", # deprecated "maligned", # deprecated
"scopelint", # deprecated "scopelint", # deprecated
"golint", # deprecated "golint", # deprecated
"exhaustivestruct", # deprecated
"cyclop", # duplicate of gocyclo "cyclop", # duplicate of gocyclo
"sqlclosecheck", # not relevant (SQL)
"rowserrcheck", # not relevant (SQL)
"execinquery", # not relevant (SQL)
"lll", "lll",
"gosec", "gosec",
"dupl", # not relevant "dupl", # not relevant
@ -69,7 +73,7 @@
"nlreturn", # not relevant "nlreturn", # not relevant
"wsl", # not relevant "wsl", # not relevant
"exhaustive", # not relevant "exhaustive", # not relevant
"exhaustivestruct", # not relevant "exhaustruct", # not relevant
"makezero", # not relevant "makezero", # not relevant
"ifshort", # not relevant "ifshort", # not relevant
"forbidigo", # not relevant "forbidigo", # not relevant
@ -83,6 +87,7 @@
"tagliatelle", "tagliatelle",
"errname", "errname",
"errchkjson", "errchkjson",
"nonamedreturns",
] ]
[issues] [issues]