Skip to content

Commit

Permalink
chore: update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed May 20, 2022
1 parent 81f1fab commit 9b029d5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 26 deletions.
26 changes: 2 additions & 24 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,30 +29,8 @@ jobs:
with:
fetch-depth: 0

# https://golangci-lint.run/usage/install#other-ci
- name: Install golangci-lint ${{ env.GOLANGCI_LINT_VERSION }}
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: Generate DNS docs
run: make generate-dns

- name: Install Hugo
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
env:
GO_VERSION: 1.18
GOLANGCI_LINT_VERSION: v1.45.2
GOLANGCI_LINT_VERSION: v1.46.2
HUGO_VERSION: 0.54.0
CGO_ENABLED: 0
LEGO_E2E_TESTS: CI
Expand Down
7 changes: 6 additions & 1 deletion .golangci.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@
"maligned", # deprecated
"scopelint", # deprecated
"golint", # deprecated
"exhaustivestruct", # deprecated
"cyclop", # duplicate of gocyclo
"sqlclosecheck", # not relevant (SQL)
"rowserrcheck", # not relevant (SQL)
"execinquery", # not relevant (SQL)
"lll",
"gosec",
"dupl", # not relevant
Expand All @@ -69,7 +73,7 @@
"nlreturn", # not relevant
"wsl", # not relevant
"exhaustive", # not relevant
"exhaustivestruct", # not relevant
"exhaustruct", # not relevant
"makezero", # not relevant
"ifshort", # not relevant
"forbidigo", # not relevant
Expand All @@ -83,6 +87,7 @@
"tagliatelle",
"errname",
"errchkjson",
"nonamedreturns",
]

[issues]
Expand Down

0 comments on commit 9b029d5

Please sign in to comment.