install: one-line installers, a windows CI leg, and docs to match #48
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: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - run: go vet ./... | |
| - run: go test ./... | |
| - run: go build ./... | |
| # The installers can't run in CI, but they can at least parse. | |
| - if: runner.os == 'Linux' | |
| run: sh -n install.sh | |
| - if: runner.os == 'Windows' | |
| shell: pwsh | |
| run: | | |
| $errs = $null | |
| [void][System.Management.Automation.Language.Parser]::ParseFile("$PWD/install.ps1", [ref]$null, [ref]$errs) | |
| if ($errs) { $errs; exit 1 } |