From ea94ab0c51dbc12e5edafe0f37e269a89e8efb4c Mon Sep 17 00:00:00 2001 From: Boris Bera Date: Sat, 21 Sep 2024 16:11:15 -0400 Subject: [PATCH] chore(CI): add basic CI (build & test) for PRs and master pushes --- .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..a77500e --- /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 ./cmd