From 73c9f41c8807218e31ad33d5952723673d852c82 Mon Sep 17 00:00:00 2001 From: Robert Findley Date: Mon, 23 Jun 2025 14:51:04 -0400 Subject: [PATCH] all: add test github action Add a workflow to run Go tests for PRs and pushes to main. --- .github/workflows/test.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..b603512 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,26 @@ +name: Test +on: + # Manual trigger + workflow_dispatch: + push: + branches: main + pull_request: + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + go: [ '1.23', '1.24' ] + steps: + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go }} + - name: Check out code + uses: actions/checkout@v4 + - name: Test + run: go test -v ./...