feat: add /crew-commit skill with canonical commit workflow (hq-8h5fi) #6118
Workflow file for this run
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: Windows CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| name: Windows Build and Unit Tests | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Set up Go | |
| uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6 | |
| with: | |
| go-version: '1.26' | |
| cache: false | |
| - name: Cache Go modules | |
| uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5 | |
| with: | |
| path: ~/go/pkg/mod | |
| key: gomod-windows-${{ hashFiles('go.sum') }} | |
| restore-keys: gomod-windows- | |
| - name: Add to PATH | |
| run: | | |
| echo "$(go env GOPATH)/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
| - name: Install ICU4C (MSYS2) | |
| uses: msys2/setup-msys2@cafece8e6baf9247cf9b1bf95097b0b983cc558d # v2.31.0 | |
| with: | |
| path-type: inherit | |
| msystem: UCRT64 | |
| pacboy: icu:p toolchain:p pkg-config:p | |
| - name: Configure Git | |
| shell: msys2 {0} | |
| run: | | |
| git config --global user.name "CI Bot" | |
| git config --global user.email "[email protected]" | |
| - name: Install Dolt | |
| shell: pwsh | |
| run: | | |
| $release = Invoke-RestMethod 'https://api.github.com/repos/dolthub/dolt/releases/latest' | |
| $asset = $release.assets | Where-Object { $_.name -like 'dolt-windows-amd64.zip' } | |
| $zip = "$env:RUNNER_TEMP\dolt.zip" | |
| Invoke-WebRequest -Uri $asset.browser_download_url -OutFile $zip | |
| Expand-Archive -Path $zip -DestinationPath "$env:RUNNER_TEMP\dolt" | |
| $bin = Get-ChildItem -Path "$env:RUNNER_TEMP\dolt" -Recurse -Filter 'dolt.exe' | Select-Object -First 1 | |
| $gopathBin = "$(go env GOPATH)\bin" | |
| New-Item -ItemType Directory -Force -Path $gopathBin | Out-Null | |
| Copy-Item $bin.FullName "$gopathBin\dolt.exe" | |
| & "$gopathBin\dolt.exe" version | |
| - name: Install bd | |
| run: go install github.com/steveyegge/beads/cmd/[email protected] | |
| - name: Install gotestsum | |
| run: go install gotest.tools/gotestsum@latest | |
| - name: Build | |
| shell: msys2 {0} | |
| run: go build -v ./cmd/gt | |
| - name: Unit Tests | |
| shell: msys2 {0} | |
| run: gotestsum --format testname --junitfile junit.xml -- -short ./... | |
| - name: Test Report | |
| if: always() | |
| shell: bash | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| run: | | |
| python3 .github/scripts/junit-report.py junit.xml "Windows Test Failures" |