This commit is contained in:
2026-05-27 22:12:14 -05:00
commit 95c1204db1
36 changed files with 4291 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
name: integration-test
on:
pull_request:
jobs:
build-and-run:
name: Build and run
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Build
run: |
New-Item -ItemType Directory -Force dist | Out-Null
go build -o dist/bootstrap_windows_env.exe ./cmd/bootstrap_windows_env
- name: Run (dry-run)
run: ./dist/bootstrap_windows_env.exe --dry-run --yes --headless --no-wsl
+36
View File
@@ -0,0 +1,36 @@
name: release
on:
workflow_dispatch:
inputs:
tag:
description: "Release tag to create (e.g. v1.2.3)"
required: true
type: string
permissions:
contents: write
jobs:
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Build
run: |
New-Item -ItemType Directory -Force dist | Out-Null
go build -o dist/bootstrap_windows_env.exe ./cmd/bootstrap_windows_env
Get-FileHash dist/bootstrap_windows_env.exe -Algorithm SHA256 | ForEach-Object { "$($_.Hash.ToLower()) bootstrap_windows_env.exe" } | Set-Content dist/bootstrap_windows_env.exe.sha256
- name: Publish
env:
GH_TOKEN: ${{ github.token }}
run: |
$tag = "${{ inputs.tag }}"
gh release view $tag 2>$null
if ($LASTEXITCODE -ne 0) {
gh release create $tag --title $tag --target ${{ github.sha }} --notes "Windows bootstrapper $tag"
}
gh release upload $tag dist/bootstrap_windows_env.exe dist/bootstrap_windows_env.exe.sha256 --clobber
+16
View File
@@ -0,0 +1,16 @@
name: unit-test
on:
pull_request:
jobs:
test:
name: Unit tests
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run unit tests
run: go test ./...