diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index feb89d1..990f5c1 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -10,9 +10,9 @@ jobs: matrix: operating-system: [ - ubuntu-latest, + # ubuntu-latest, windows-latest, - macos-latest, + # macos-latest, ] runs-on: ${{ matrix.operating-system }} @@ -24,13 +24,29 @@ jobs: - name: Checkout uses: actions/checkout@v2 + - name: test P$ + run: | + fsutil 8dot3name set D: 0 + + fsutil 8dot3name query C: + fsutil 8dot3name query D: + + $path = "D:\a\go-paths-helper\go-paths-helper\testdata\fileset\anotherFile" + "Long path: $path" + + # convert it to 8.3 short name + $shortPath = (New-Object -ComObject Scripting.FileSystemObject).GetFile($path).ShortPath + "Short path: $shortPath" + - name: Install Go uses: actions/setup-go@v2 with: - go-version: "1.21" + go-version: "1.21.10" - name: Run unit tests - run: go test -v ./... -coverprofile=coverage_unit.txt + run: | + fsutil 8dot3name set D: 0 + go test -v ./... -coverprofile=coverage_unit.txt - name: Send unit tests coverage to Codecov uses: codecov/codecov-action@v1