From 7895c8cbbd6e6e380fc238d24e439f3586057431 Mon Sep 17 00:00:00 2001 From: "ajith.nataraj" Date: Mon, 16 Oct 2023 10:24:32 +0530 Subject: [PATCH] added new ci workflow --- .github/workflows/ci.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 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..5388ec45 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,39 @@ +name: CI Checks + +on: + push: + branches: + - "master" + pull_request: + branches: + - "master" + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + runs-on: + group: cs-ci-runners + + strategy: + matrix: + go: ["1.17.x", "1.18.x", "master"] + + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: ${{ matrix.go }} + + - name: Install dependencies + run: go mod download + + - name: Build and test + run: make ci + + - name: Upload code coverage + run: bash <(curl -s https://codecov.io/bash) \ No newline at end of file