diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..cb9ca64 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,43 @@ +name: "Go" + +on: + merge_group: + types: + - checks_requested + pull_request: + types: + - opened + - synchronize + - reopened + push: + branches: + - main + +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v6 + - uses: actions/setup-go@v6 + with: + go-version-file: "go.mod" + cache: false + - name: Lint + uses: golangci/golangci-lint-action@v8 + with: + version: v2.7.2 + args: --timeout=10m + test: + name: Test + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v6 + - uses: actions/setup-go@v6 + with: + go-version-file: "go.mod" + - name: Test + run: | + go test ./... -v diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 0000000..ada6411 --- /dev/null +++ b/.golangci.yml @@ -0,0 +1,5 @@ +version: "2" + +linters: + disable: + - errcheck