diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..e6a7ff0 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,29 @@ +name: CI + +on: + push: + branches: [main] + tags: ["v*"] + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v6 + with: + go-version-file: "go.mod" + cache-dependency-path: | + go.sum + + - name: Build and test + run: | + go test -v ./...