Skip to content

Commit

Permalink
Tweak golanci-lint version
Browse files Browse the repository at this point in the history
  • Loading branch information
anbsky committed Feb 20, 2024
1 parent 1a4f4de commit f17f850
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
test:
name: Test
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -34,16 +34,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: '1.20'
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
# Require: The version of golangci-lint to use.
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
# When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
version: v1.56
version: v1.53 # Works with go1.20
args: -v
1 change: 1 addition & 0 deletions client/openfile_linux.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build linux
// +build linux

package client
Expand Down
4 changes: 2 additions & 2 deletions library/maintenance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ func (s *maintenanceSuite) TestRetireVideos() {
context.Background(),
"UPDATE videos SET accessed_at = $2 where tid = $1",
stream.TID(),
time.Now().AddDate(0, 0, -rand.Intn(30)), // #nosec G404
)
time.Now().AddDate(0, 0, -rand.Intn(30)),
) // #nosec G404
s.Require().NoError(err)
}

Expand Down

0 comments on commit f17f850

Please sign in to comment.