| 1 |
name: Test fastwalk on Windows |
| 2 |
on: |
| 3 |
push: |
| 4 |
branches: [master] |
| 5 |
pull_request: |
| 6 |
branches: [master] |
| 7 |
jobs: |
| 8 |
build: |
| 9 |
runs-on: windows-latest |
| 10 |
strategy: |
| 11 |
matrix: |
| 12 |
go: ['1.22', '1.23', '1.24'] |
| 13 |
steps: |
| 14 |
- uses: actions/checkout@v5 |
| 15 |
with: |
| 16 |
fetch-depth: 1 |
| 17 |
- name: Set up Go |
| 18 |
uses: actions/setup-go@v6 |
| 19 |
with: |
| 20 |
go-version: ${{ matrix.go }} |
| 21 |
- name: Test Race |
| 22 |
run: go test -race ./... |
| 23 |
|
| 24 |
# WSL Test: disabled for now since it's very slow (~5 minutes) |
| 25 |
# |
| 26 |
# name: Test fastwalk on Windows WSL |
| 27 |
# |
| 28 |
# on: |
| 29 |
# push: |
| 30 |
# branches: [ master ] |
| 31 |
# pull_request: |
| 32 |
# branches: [ master ] |
| 33 |
# |
| 34 |
# jobs: |
| 35 |
# build: |
| 36 |
# runs-on: windows-latest |
| 37 |
# strategy: |
| 38 |
# matrix: |
| 39 |
# go: [1.22] |
| 40 |
# steps: |
| 41 |
# - uses: actions/checkout@v5 |
| 42 |
# with: |
| 43 |
# fetch-depth: 1 |
| 44 |
# - uses: Vampire/setup-wsl@v3 |
| 45 |
# with: |
| 46 |
# distribution: Ubuntu-24.04 |
| 47 |
# - name: Set up Go |
| 48 |
# uses: actions/setup-go@v6 |
| 49 |
# with: |
| 50 |
# go-version: ${{ matrix.go }} |
| 51 |
# - name: Build Test |
| 52 |
# run: go test -c -o fastwalk.test.exe |
| 53 |
# - name: Test WSL |
| 54 |
# shell: wsl-bash {0} |
| 55 |
# run: | |
| 56 |
# cp ./fastwalk.test.exe /tmp/fastwalk.test.exe |
| 57 |
# cd /tmp |
| 58 |
# ./fastwalk.test.exe -test.v -test.run TestRunningUnderWSL -test-wsl |