From 2a25319bbf19d681e7193ef69bde7273ef72513c Mon Sep 17 00:00:00 2001 From: Caleb Foust Date: Thu, 21 Sep 2023 04:52:29 -0400 Subject: [PATCH] feat: add github actions --- .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 00000000..6368ccac --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: Build and test cy + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: "1.19" + + - name: Build + run: go build -v ./cmd/cy/. + + - name: Test + run: go test -v ./pkg/...