Skip to content

Bump codecov/codecov-action from 4.5.0 to 4.6.0 #183

Bump codecov/codecov-action from 4.5.0 to 4.6.0

Bump codecov/codecov-action from 4.5.0 to 4.6.0 #183

Workflow file for this run

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 ./...