Skip to content

fix: Legacy Windows CMD formatting differently than other shells #179

fix: Legacy Windows CMD formatting differently than other shells

fix: Legacy Windows CMD formatting differently than other shells #179

Workflow file for this run

name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.25"
- name: Build
run: go build -v ./...
- name: Run unit tests
run: go test -v ./...
- name: Run tests with race detection
run: go test -race -v ./...
- name: Test basic commands
run: |
go build -o tmpo${{ matrix.os == 'windows-latest' && '.exe' || '' }} .
./tmpo${{ matrix.os == 'windows-latest' && '.exe' || '' }} --version
./tmpo${{ matrix.os == 'windows-latest' && '.exe' || '' }} --help