From a6c248ece500d39541c0957920a542ba64b68e1d Mon Sep 17 00:00:00 2001 From: auyer Date: Sun, 19 May 2024 17:08:13 -0300 Subject: [PATCH] =?UTF-8?q?Adds=20GO=201.21/22=20to=20test=20matrix?= =?UTF-8?q?=F0=9F=A7=AA,=20update=20Actions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index fb9b214..f0e3c8a 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,4 +1,4 @@ -name: Unit +name: Unit Tests & Coverage on: workflow_dispatch: @@ -9,14 +9,14 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go: [ '^1.20', '^1.19', '~1.18', '~1.17', '~1.16', '~1.15', '~1.14', '~1.13', '~1.12' ] + go: [ 'stable', '^1.22', '^1.21', '^1.20', '^1.19', '~1.18', '~1.17', '~1.16', '~1.15', '~1.14', '~1.13', '~1.12' ] name: Go ${{ matrix.go }} sample steps: - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go }} @@ -27,18 +27,18 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: - go-version: "^1.20" + go-version: "stable" - name: Run tests with Coverage report run: | go test -coverprofile=coverage.txt -covermode=atomic - name: Upload coverage report - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: file: ./coverage.txt