From 56bbe3714ae7a15c3daad40d875464346272eb89 Mon Sep 17 00:00:00 2001 From: Salipa-Gurung Date: Wed, 12 Feb 2025 15:53:38 +0545 Subject: [PATCH] setup unit-test ci pipeline --- .github/workflows/ci.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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..dced647 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +name: unit-tests + +on: + pull_request: + workflow_dispatch: + push: + branches: + - main + +jobs: + unit-test: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4 + + - name: set up go + uses: actions/setup-go@v5 + with: + go-version: "1.22" + + - name: unit tests + run: go test ./...