Skip to content

feat: add default_formula rig config for sling dispatch #6099

feat: add default_formula rig config for sling dispatch

feat: add default_formula rig config for sling dispatch #6099

Workflow file for this run

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@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # 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@4f806de0a5a7294ffabaff804b38a9b435a73bda # v2.30.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 "ci@gastown.test"
- 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/bd@v0.57.0
- 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"