diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index d6d10db..6832d06 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -7,9 +7,6 @@ on: jobs: unit-tests: - strategy: - matrix: - go-version: ["1.23"] runs-on: ubuntu-latest steps: - name: Checkout code @@ -19,8 +16,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: ${{ matrix.go-version }} - + go-version-file: 'go.mod' - name: Run tests run: | go run github.com/onsi/ginkgo/v2/ginkgo ./... diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 0000000..dbad179 --- /dev/null +++ b/.golangci.yml @@ -0,0 +1,36 @@ +version: "2" +run: + tests: false +linters: + enable: + - dupl + - ginkgolinter + - gocheckcompilerdirectives + - goconst + - gocyclo + - godot + - goheader + - misspell + - revive + - zerologlint + exclusions: + generated: lax + presets: + - comments + - common-false-positives + - legacy + - std-error-handling + paths: + - third_party$ + - builtin$ + - examples$ +formatters: + enable: + - gofmt + - goimports + exclusions: + generated: lax + paths: + - third_party$ + - builtin$ + - examples$