Skip to content

fix(actions): restore no-restart flag to only skip container start #15

fix(actions): restore no-restart flag to only skip container start

fix(actions): restore no-restart flag to only skip container start #15

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@ab7a9404c0f3da075243ca237b5fac12c98deaa5 # v2.19.3
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@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
with:
token: ${{ secrets.CODECOV_TOKEN }}