From 6374f4e43a6d067d05a4265dedc3622d4621ab0b Mon Sep 17 00:00:00 2001 From: Rahul Sharma Date: Tue, 26 Nov 2024 16:18:25 +0000 Subject: [PATCH] simplify go versions used for ci tests --- .github/workflows/ci.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 71425b16..d5f5106f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,16 +28,15 @@ jobs: filters: .github/filters.yml ci: runs-on: ubuntu-latest - strategy: - matrix: - go-version: [ 'stable', '1.22' ] + needs: changes + if: ${{ contains(fromJSON(needs.changes.outputs.paths), 'src') }} steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-go@v4 + - uses: actions/setup-go@v5 with: - go-version: ${{ matrix.go-version }} + go-version-file: go.mod - name: Vet run: make vet - name: Lint @@ -47,7 +46,7 @@ jobs: - name: Test run: make test - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v4 + uses: codecov/codecov-action@v5 with: files: ./coverage.out fail_ci_if_error: true