Bump codecov/codecov-action from 5.1.1 to 5.1.2 #196
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: Unit and Integration Tests | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
jobs: | |
unit-tests: | |
name: Run Unit Tests | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: "go.mod" | |
- name: Download dependencies | |
run: go mod download | |
- name: Run unit tests | |
run: go test -race -v ./... -coverprofile ./coverage.txt | |
- name: Upload coverage to Codecov | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./coverage.txt | |
integration-tests: | |
name: Run Integration Tests | |
needs: unit-tests # Optionally make integration tests wait for unit tests to complete | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: "go.mod" | |
- name: Download dependencies | |
run: go mod download | |
- name: Run integration tests | |
run: go test -race -v -tags=integration ./... |