Fix deprecated virtual runner and golangci-lint deprecated checkers (#7716)

This commit is contained in:
Lucas Manuel Rodriguez 2022-09-13 10:48:21 -03:00 committed by GitHub
parent e48541ec89
commit 1a6380d590
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 3 deletions

View file

@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
# Doesn't work on Windows because Linux Docker containers are not supported.
os: [ubuntu-20.04, ubuntu-18.04, macos-11, macos-12]
os: [ubuntu-20.04, ubuntu-22.04, macos-11, macos-12]
runs-on: ${{ matrix.os }}
steps:

View file

@ -1,7 +1,6 @@
linters:
disable-all: true
enable:
- deadcode
- depguard
- gosec
- gocritic
@ -11,7 +10,6 @@ linters:
- revive
- rowserrcheck
- sqlclosecheck
- structcheck
- typecheck
- unconvert
- unused

View file

@ -8,6 +8,7 @@ import (
func main() {
fs := http.FileServer(http.FS(os.DirFS(os.Args[2])))
http.Handle("/", fs)
//nolint:gosec // G114: file server used for testing purposes only.
err := http.ListenAndServe(":"+os.Args[1], nil)
if err != nil {
panic(err)