From b7ed0f968602d1121f4a0e1d71d24f469bbcc7a9 Mon Sep 17 00:00:00 2001 From: Anish Chanda Date: Tue, 26 Nov 2024 14:45:45 -0600 Subject: [PATCH] Create ci.yml --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 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..f22d74a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: CI + +on: + push: + branches: [ main, dev ] + pull_request: + branches: [ main, dev ] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: setup go + uses: actions/setup-go@v4 + with: + go-version: '1.23' + + - name: Install dependencies + run: go mod download + + - name: Test + run: go test -v ./... + + - name: Run linter + uses: golangci/golangci-lint-action@v6.1.1