Skip to content

Commit

Permalink
ci: shorter if
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoliwa committed Dec 28, 2024
1 parent 4e2485b commit 0855204
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,20 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
if: ${{ needs.pre_job.outputs.should_skip != 'true' || matrix.codecov == 'true' }}
if: ${{ needs.pre_job.outputs.should_skip != 'true' || matrix.codecov }}
- name: Set up Go
if: ${{ needs.pre_job.outputs.should_skip != 'true' || matrix.codecov == 'true' }}
if: ${{ needs.pre_job.outputs.should_skip != 'true' || matrix.codecov }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Run tests and generate coverage data
if: ${{ needs.pre_job.outputs.should_skip != 'true' || matrix.codecov == 'true' }}
if: ${{ needs.pre_job.outputs.should_skip != 'true' || matrix.codecov }}
run: |
make test-go-coverage
env:
GO111MODULE: "auto"
- name: Upload coverage to CodeCov
if: ${{ matrix.codecov == 'true' }}
if: ${{ matrix.codecov }}
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 0855204

Please sign in to comment.