diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/testing.yml similarity index 57% rename from .gitea/workflows/test.yml rename to .gitea/workflows/testing.yml index b551a45..d31218a 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/testing.yml @@ -1,4 +1,4 @@ -name: checks +name: testing on: - push - pull_request @@ -12,10 +12,12 @@ jobs: name: check and test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/checkout@v4 with: - go-version: '>=1.20.1' + fetch-depth: 0 # all history for all branches and tags + - uses: actions/setup-go@v5 + with: + go-version-file: "go.mod" - uses: https://gitea.com/actions/go-hashfiles@v0.0.1 id: hash-go with: @@ -24,9 +26,14 @@ jobs: go.sum - name: cache go id: cache-go - uses: https://github.com/actions/cache@v3 + uses: actions/cache@v4 with: path: | /go_path /go_cache key: go_path-${{ steps.hash-go.outputs.hash }} + - name: golangci-lint + uses: golangci/golangci-lint-action@v3 + with: + version: v1.56.2 + args: --timeout 5m