diff --git a/.github/workflows/verify-pr.yml b/.github/workflows/verify-pr.yml new file mode 100644 index 0000000..f5d986a --- /dev/null +++ b/.github/workflows/verify-pr.yml @@ -0,0 +1,39 @@ +name: Verify Pull Request + +on: + pull_request: + branches: + - main + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v5 + + - name: Set up Go + uses: actions/setup-go@v6 + with: + go-version-file: "go.mod" + + - name: Run golangci-lint + uses: golangci/golangci-lint-action@v9 + with: + version: latest + + test: + name: Run Tests + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - name: Checkout code + uses: actions/checkout@v5 + + - name: Set up Go + uses: actions/setup-go@v6 + with: + go-version-file: 'go.mod' + + - name: Run tests + run: go test ./... \ No newline at end of file diff --git a/main.go b/main.go index e69de29..38dd16d 100644 --- a/main.go +++ b/main.go @@ -0,0 +1,3 @@ +package main + +func main() {}