Update orb version (#170)

This commit is contained in:
Ben Schumacher 2022-10-07 20:24:44 +02:00 committed by GitHub
parent 2629a23a05
commit 2879447b47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 14 deletions

View file

@ -1,7 +1,7 @@
version: 2.1
orbs:
plugin-ci: mattermost/plugin-ci@0.1.6
plugin-ci: mattermost/plugin-ci@0.1.12
workflows:
version: 2

View file

@ -7,8 +7,6 @@ linters-settings:
simplify: true
goimports:
local-prefixes: github.com/mattermost/mattermost-starter-template
golint:
min-confidence: 0
govet:
check-shadowing: true
enable-all: true
@ -21,34 +19,26 @@ linters:
disable-all: true
enable:
- bodyclose
- deadcode
- errcheck
- gocritic
- gofmt
- goimports
- golint
- gosec
- gosimple
- govet
- ineffassign
- misspell
- nakedret
- revive
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unused
- varcheck
- whitespace
issues:
exclude-rules:
- path: server/manifest.go
linters:
- deadcode
- unused
- varcheck
- path: server/configuration.go
linters:
- unused

View file

@ -1,7 +1,7 @@
package main
import (
"io/ioutil"
"io"
"net/http"
"net/http/httptest"
"testing"
@ -20,7 +20,7 @@ func TestServeHTTP(t *testing.T) {
result := w.Result()
assert.NotNil(result)
defer result.Body.Close()
bodyBytes, err := ioutil.ReadAll(result.Body)
bodyBytes, err := io.ReadAll(result.Body)
assert.Nil(err)
bodyString := string(bodyBytes)