Add common step for downloading image-builder CLI #20101
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test coverage | |
on: | |
push: | |
tags: | |
- v* | |
branches: | |
- main | |
pull_request: | |
paths-ignore: | |
- 'release/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.21' | |
check-latest: true | |
cache: true | |
- name: Run go test with coverage | |
run: COVER_PROFILE=coverage.txt make coverage-unit-test | |
- name: Codecov upload | |
uses: codecov/codecov-action@v4.1.1 | |
with: | |
files: ./coverage.txt | |
token: ${{ secrets.CODECOV_TOKEN }} |