From 342936d9f055df3d2363672eca903596690f80c6 Mon Sep 17 00:00:00 2001 From: Pier-Olivier Thibault <23230+pier-oliviert@users.noreply.github.com> Date: Wed, 18 Sep 2024 09:02:17 -0400 Subject: [PATCH] Github: Run Test workflow on main branch --- .github/workflows/main.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/main.yaml diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..f7c6c24 --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,30 @@ +name: Main Workflows +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + tests: + name: Test Suite + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - uses: actions/checkout@v4 + + - name: Setup + uses: actions/setup-go@v5 + with: + go-version: '1.22.x' + + - name: Dependencies + run: go get . + + - name: Build + run: go build -v ./... + + - name: Test + run: go test +