diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..b509f0dc --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,20 @@ +name: Test + +on: + pull_request: + types: [opened, edited, reopened, synchronize, ready_for_review] + branches: [main] +jobs: + lint: + name: lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v4 + with: + go-version: "1.21" + - name: golangci-lint + uses: golangci/golangci-lint-action@v3 + with: + version: latest + args: --enable-all --timeout 10m \ No newline at end of file