diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1ce134a..66a98f1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,16 +18,16 @@ jobs: - name: Configure git # required for golangci-lint on Windows shell: bash run: git config --global core.autocrlf false - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - name: Lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v4 with: skip-cache: true - name: test - uses: n8maninger/action-golang-test@v1 + uses: n8maninger/action-golang-test@v2 with: args: "-race" skip-go-install: true diff --git a/.golangci.yml b/.golangci.yml index 23bb24a..72819f2 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -17,16 +17,6 @@ run: # list of build tags, all linters use it. Default is empty list. build-tags: [] - # default is true. Enables skipping of directories: - # vendor$, third_party$, testdata$, examples$, Godeps$, builtin$ - skip-dirs-use-default: true - - # which files to skip: they will be analyzed, but issues from them - # won't be reported. Default value is empty list, but there is - # no need to include all autogenerated files, we confidently recognize - # autogenerated files. If it's not please let us know. - skip-files: [] - # output configuration options output: # print lines of code with issue, default is true @@ -40,7 +30,6 @@ linters-settings: ## Enabled linters: govet: # report about shadowed variables - check-shadowing: false disable-all: false tagliatelle: @@ -64,6 +53,7 @@ linters-settings: - uncheckedInlineErr # style + - emptyStringTest - exitAfterDefer - ifElseChain - importShadow diff --git a/go.mod b/go.mod index ba6f70f..7976cf2 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module go.sia.tech/coreutils -go 1.21.6 +go 1.21.8 require ( go.etcd.io/bbolt v1.3.10