Skip to content

fix: use shared identifier matching for implicit restart logic #36

fix: use shared identifier matching for implicit restart logic

fix: use shared identifier matching for implicit restart logic #36

Workflow file for this run

---
name: Run Tests and Upload Coverage
on:
workflow_call:
workflow_dispatch:
pull_request:
paths:
- cmd/**
- internal/**
- pkg/**
- go.mod
- go.sum
- main.go
permissions:
contents: read # Set default read-only permissions
jobs:
test:
name: Run Tests and Upload Coverage Report
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
platform:
- macos-latest
- windows-2025
- ubuntu-latest
steps:
- name: Harden the Runner (Step Security)
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
with:
egress-policy: audit
- name: Checkout Repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
cache: true
cache-dependency-path: "**/go.sum"
go-version-file: go.mod
- name: Install Dependencies
run: go mod download
- name: Run Tests
run: |
go test -timeout 60s -v -coverprofile="coverage.out" -covermode atomic ./...
- name: Upload Coverage Report to Codecov
uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}