From a4fb012457d18037b5538828aa9deba488a5253e Mon Sep 17 00:00:00 2001 From: Simon K Date: Sun, 27 Oct 2024 16:37:44 +0000 Subject: [PATCH] adding test workflow --- .github/workflows/gotest.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/gotest.yml diff --git a/.github/workflows/gotest.yml b/.github/workflows/gotest.yml new file mode 100644 index 0000000..343740e --- /dev/null +++ b/.github/workflows/gotest.yml @@ -0,0 +1,24 @@ +name: Go + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + go-version: ['1.20', '1.21', '1.22', '1.23'] + + steps: + - uses: actions/checkout@v4 + - name: Setting up go ${{ matrix.go-version }} + uses: actions/setup-go@v5 + with: + go-version: $ {{ matrix.go-version }} + + - name: Test + run: go test -v ./...