Files
task/.github/workflows/test.yml
Valentin Maerten d0218d5656 fix(tests): handle Windows path output and disable CI fail-fast
- TestUserWorkingDirectoryWithIncluded: normalize actual output instead
  of just expected, since task outputs backslashes on Windows
- TestDynamicVariablesRunOnTheNewCreatedDir: take first line only, as
  Windows may output additional corrupted path info
- Disable fail-fast in CI to see all test failures at once
2026-01-31 18:54:03 +01:00

37 lines
740 B
YAML

name: Test
on:
pull_request:
push:
tags:
- v*
branches:
- main
jobs:
test:
name: Test
strategy:
fail-fast: false
matrix:
go-version: [1.24.x, 1.25.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{matrix.platform}}
steps:
- name: Set up Go ${{matrix.go-version}}
uses: actions/setup-go@v6
with:
go-version: ${{matrix.go-version}}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v6
- name: Download Go modules
run: go mod download
env:
GOPROXY: https://proxy.golang.org
- name: Test
run: go run ./cmd/task test