Files
HackBrowserData/.github/workflows/test.yml
T
Roger f4c05f861f chore: add refactor RFCs and compatibility guardrails (#648)
Phase 0 of the refactor: settle the design record and pin the CLI flag
surface and wire names before any code moves.
2026-10-26 15:41:47 +08:00

44 lines
907 B
YAML

name: Tests
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
permissions:
contents: read
id-token: write
jobs:
test:
name: Test (${{ matrix.os }})
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
with:
go-version: '1.20.x'
- name: Run tests
if: matrix.os == 'windows-latest'
run: go test -v ./...
- name: Run tests with coverage
if: matrix.os != 'windows-latest'
run: go test -v -coverprofile=coverage.out ./...
- name: Upload coverage
if: matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v7
with:
use_oidc: true
files: ./coverage.out
fail_ci_if_error: false
flags: unittests