From 3853de35ace4975a979ef1b9fe2b2bf3f232362f Mon Sep 17 00:00:00 2001 From: Eric Fixler Date: Fri, 16 Feb 2024 11:23:21 -0500 Subject: [PATCH] Create test.yml --- .github/workflows/test.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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..542d4ad --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,24 @@ +on: + push: + branches: + - main + pull_request: + branches: + - main +name: test +jobs: + test: + strategy: + matrix: + go-version: [1.22.x, 1.21.x] + os: [ubuntu-latest] + runs-on: ${{ matrix.os }} + steps: + - name: Install Go + uses: actions/setup-go@v4 + with: + go-version: ${{ matrix.go-version }} + - name: Checkout code + uses: actions/checkout@v4 + - name: test + run: go test -v ./...