From a380d204741dba87375d84d3d12445453a22025b Mon Sep 17 00:00:00 2001 From: Dominik Honnef Date: Sat, 23 Mar 2024 18:11:41 +0100 Subject: [PATCH] README: don't depend on specific versions of Staticcheck or the action We grow tired of having to update the README all the time, so just depend on the latest versions. Users who actually care about proper version management will do the right thing and pin to specific versions. Closes: gh-12 --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 674d3b0..1dd2582 100644 --- a/README.md +++ b/README.md @@ -19,9 +19,9 @@ jobs: - uses: actions/checkout@v2 with: fetch-depth: 1 - - uses: dominikh/staticcheck-action@v1.3.0 + - uses: dominikh/staticcheck-action@v1 with: - version: "2022.1.3" + version: "latest" ``` A more advanced example that runs tests, go vet and Staticcheck on multiple OSs and Go versions looks like this: @@ -49,9 +49,9 @@ jobs: go-version: ${{ matrix.go }} - run: "go test ./..." - run: "go vet ./..." - - uses: dominikh/staticcheck-action@v1.3.0 + - uses: dominikh/staticcheck-action@v1 with: - version: "2022.1.3" + version: "latest" install-go: false cache-key: ${{ matrix.go }} working-directory: ${{ matrix.dir }}