fix(release): disable homebrew cask publishing for now #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |