Skip to content

chore: Bump the testing-deps group with 2 updates (#199) #61

chore: Bump the testing-deps group with 2 updates (#199)

chore: Bump the testing-deps group with 2 updates (#199) #61

Workflow file for this run

name: Validate
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest] # TODO: Explore adding Windows support
runs-on: ${{ matrix.os }}
env:
GO111MODULE: on
steps:
- name: Checkout Source
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "^1.23"
- name: Run Tests with Retries
uses: nick-invision/retry@v3
with:
timeout_minutes: 5
max_attempts: 3
command: go test ./... -race -coverprofile=coverage.txt -covermode=atomic -timeout 5m
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
if: matrix.os == 'ubuntu-latest' # Only upload coverage from one OS
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
file: ./coverage.txt
fail_ci_if_error: false