From 1db84d42600fec2e473ed865a32bf9ea75a7689e Mon Sep 17 00:00:00 2001 From: Ed Date: Wed, 18 Sep 2024 12:06:40 +0100 Subject: [PATCH] github/workflow: Add test workflow --- .github/workflows/test.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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..d3ef66e --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,30 @@ +name: Run Tests + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + + build: + strategy: + matrix: + go: [ '1.22', '1' ] + runs-on: ubuntu-latest + + steps: + + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go }} + + - name: Vet + run: go vet ./... + + - name: Test + run: go test -v ./...