From 6a60d027599f6f66e45201211ef364d06eed57c9 Mon Sep 17 00:00:00 2001 From: Boris Bera Date: Sat, 21 Sep 2024 16:55:23 -0400 Subject: [PATCH] chore(CI): add basic CI (build & test) for PRs and master pushes (#396) --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..eb3e4ae --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: CI +on: + pull_request: + push: + branches: [master] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v3 + with: + go-version: '^1.21' + - run: go test -v ./... + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v3 + with: + go-version: '^1.21' + - run: go build -v .