Skip to content

Add image to README and update badges #5

Add image to README and update badges

Add image to README and update badges #5

Workflow file for this run

name: ci
on:
pull_request:
push:
branches: [main]
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Validate install.sh syntax
if: runner.os != 'Windows'
run: bash -n scripts/install.sh
- name: Validate install.ps1 syntax
shell: pwsh
run: '$tokens=$null; $errors=$null; [System.Management.Automation.Language.Parser]::ParseFile("scripts/install.ps1", [ref]$tokens, [ref]$errors) | Out-Null; if($errors.Count -gt 0){ $errors | ForEach-Object { Write-Error $_ }; exit 1 }'
- run: go mod tidy
- run: go test ./...
- run: go build ./...
- name: CRLF sanity checks (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: |
git config --global core.autocrlf true
go test ./internal/patch ./internal/gitutil
- name: e2e smoke (Unix)
if: runner.os != 'Windows'
run: ./scripts/e2e_smoke.sh
- name: e2e guardrails (Unix)
if: runner.os != 'Windows'
run: ./scripts/e2e_guardrails.sh