From 9bb64fefe36ca1c3ca594b931fa8f7d4f2de1f87 Mon Sep 17 00:00:00 2001 From: Omkar Patil Date: Mon, 15 Jul 2024 15:44:26 +0530 Subject: [PATCH] chore: update github workflow --- .github/workflows/go.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 0b443f3..47c2dbf 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -10,19 +10,21 @@ on: branches: [ "main" ] jobs: - build: runs-on: ubuntu-latest + strategy: + matrix: + go-version: [ '1.22' ] steps: - uses: actions/checkout@v4 - - name: Set up Go - uses: actions/setup-go@v4 + - name: Set up Go ${{ matrix.go-version }} + uses: actions/setup-go@v5 with: - go-version: '1.20' + go-version: ${{ matrix.go-version }} - - name: Build - run: go build -v ./... + - name: Display Go version + run: go version - name: Test run: go test -v ./...