From b75deaa05717961a5ab8a3ea5f88b19d4f9e384a Mon Sep 17 00:00:00 2001 From: Sanchit Jain <42393122+sjain93@users.noreply.github.com> Date: Tue, 26 Sep 2023 10:20:03 -0400 Subject: [PATCH] Create pipeline_action.yml Add a github action that runs the testing suite on PR --- .github/workflows/pipeline_action.yml | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/pipeline_action.yml diff --git a/.github/workflows/pipeline_action.yml b/.github/workflows/pipeline_action.yml new file mode 100644 index 0000000..925866c --- /dev/null +++ b/.github/workflows/pipeline_action.yml @@ -0,0 +1,28 @@ +# This workflow will build a golang project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go + +name: Go + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.20' + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./...