diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a9fba9e..8c3bf2c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,19 +35,15 @@ jobs: runs-on: ubuntu-latest permissions: contents: write - strategy: - matrix: - go: - - 1.24.x - - 1.25.x steps: - uses: actions/checkout@v6 - - name: Set up Go ${{ matrix.go }} + - name: Set up Go + id: setup-go uses: actions/setup-go@v6 with: - go-version: ${{ matrix.go }} + go-version-file: go.mod check-latest: true - name: Install Task @@ -70,7 +66,7 @@ jobs: { cat << EOF ## ๐Ÿ”ง Test Environment - - **Go Version:** ${{ matrix.go }} + - **Go Version:** ${{ steps.setup-go.outputs.go-version }} - **OS:** ubuntu-latest - **Timestamp:** $(date -u) @@ -90,7 +86,7 @@ jobs: # Generate test summary { cat << EOF - ## ๐Ÿงช Test Results (Go ${{ matrix.go }}) + ## ๐Ÿงช Test Results (Go ${{ steps.setup-go.outputs.go-version }}) | Metric | Value | | ----------- | ------------------------------------------------------------- | @@ -152,7 +148,7 @@ jobs: { cat << EOF - ## ๐Ÿ“Š Code Coverage (Go ${{ matrix.go }}) + ## ๐Ÿ“Š Code Coverage (Go ${{ steps.setup-go.outputs.go-version }}) **Total Coverage: $COVERAGE** @@ -213,7 +209,7 @@ jobs: if: failure() uses: actions/upload-artifact@v6 with: - name: test-results-go-${{ matrix.go }} + name: test-results-go-${{ steps.setup-go.outputs.go-version }} path: | test-output.log coverage/ @@ -223,7 +219,7 @@ jobs: run: | { cat << EOF - ## ๐Ÿ” Static Analysis (Go ${{ matrix.go }}) + ## ๐Ÿ” Static Analysis (Go ${{ steps.setup-go.outputs.go-version }}) EOF @@ -268,7 +264,7 @@ jobs: if: always() run: | cat >> "$GITHUB_STEP_SUMMARY" << 'EOF' - ## ๐Ÿ“‹ Job Summary (Go ${{ matrix.go }}) + ## ๐Ÿ“‹ Job Summary (Go ${{ steps.setup-go.outputs.go-version }}) | Step | Status | | --------------- | --------------------------------------------------------------- | @@ -284,7 +280,7 @@ jobs: uses: codecov/codecov-action@v5 with: files: ./coverage/coverage.out - flags: Go ${{ matrix.go }} + flags: Go ${{ steps.setup-go.outputs.go-version }} slug: kjanat/articulate-parser token: ${{ secrets.CODECOV_TOKEN }} @@ -292,7 +288,7 @@ jobs: if: ${{ !cancelled() }} uses: codecov/test-results-action@v1 with: - flags: Go ${{ matrix.go }} + flags: Go ${{ steps.setup-go.outputs.go-version }} token: ${{ secrets.CODECOV_TOKEN }} docker-test: