Skip to content

Commit

Permalink
update ci version
Browse files Browse the repository at this point in the history
  • Loading branch information
unrolled committed Nov 29, 2022
1 parent ae0c1ea commit e4c9b20
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 59 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
tests:
strategy:
matrix:
go-version: [1.17.x, 1.18.x]
go-version: [1.17.x, 1.18.x, 1.19.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
Expand Down
57 changes: 3 additions & 54 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,56 +1,5 @@
issues:
exclude:
- G203
run:
timeout: 10m

linters:
disable-all: true
enable:
- bodyclose
- deadcode
- depguard
- dogsled
- dupl
- errcheck
- exhaustive
- gocritic
- gocyclo
- goimports
- goprintffuncname
- gosec
- gosimple
- govet
- ineffassign
- nakedret
- nolintlint
- rowserrcheck
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
- varcheck
- whitespace
- noctx
- misspell
# - goconst
# - golint
# - gochecknoinits
# - funlen
# - gofmt
# - scopelint
# - interfacer
# - gomnd
# - lll
# - asciicheck
# - gochecknoglobals
# - gocognit
# - godot
# - godox
# - goerr113
# - maligned
# - nestif
# - prealloc
# - testpackage
# - wsl
disable-all: false
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
.PHONY: help test
.PHONY: help test ci
.DEFAULT_GOAL := help

help: ## Displays this help message.
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)

test: ## Runs the linter, tests, and vetting.
golangci-lint run ./...
go test -cover -race -count=1 ./...
go test -v -cover -race -count=1 ./...
go vet ./...

ci: ## Runs on the tests and vetting for CI.
Expand Down
4 changes: 2 additions & 2 deletions fs.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package render

import (
"io/ioutil"
"os"
"path/filepath"
)

Expand All @@ -17,5 +17,5 @@ func (LocalFileSystem) Walk(root string, walkFn filepath.WalkFunc) error {
}

func (LocalFileSystem) ReadFile(filename string) ([]byte, error) {
return ioutil.ReadFile(filename)
return os.ReadFile(filename)
}

0 comments on commit e4c9b20

Please sign in to comment.