Skip to content

Commit 653373b

Browse files
wip
1 parent 6444974 commit 653373b

File tree

1 file changed

+26
-4
lines changed

1 file changed

+26
-4
lines changed

Diff for: .github/workflows/test.yaml

+26-4
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
matrix:
1111
operating-system:
1212
[
13-
ubuntu-latest,
13+
# ubuntu-latest,
1414
windows-latest,
15-
macos-latest,
15+
# macos-latest,
1616
]
1717

1818
runs-on: ${{ matrix.operating-system }}
@@ -24,13 +24,35 @@ jobs:
2424
- name: Checkout
2525
uses: actions/checkout@v2
2626

27+
- name: test P$
28+
run: |
29+
fsutil 8dot3name set D: 0
30+
fsutil 8dot3name set 0
31+
32+
fsutil 8dot3name query C:
33+
fsutil 8dot3name query D:
34+
35+
$path = "C:\Program Files\PowerShell\7\pwsh.exe"
36+
"Long path: $path"
37+
# convert it to 8.3 short name
38+
$shortPath = (New-Object -ComObject Scripting.FileSystemObject).GetFile($path).ShortPath
39+
"Short path: $shortPath"
40+
41+
$path2 = "D:\a\go-paths-helper\go-paths-helper\testdata\fileset\anotherFile"
42+
"Long path2: $path2"
43+
# convert it to 8.3 short name
44+
$shortPath2 = (New-Object -ComObject Scripting.FileSystemObject).GetFile($path2).ShortPath
45+
"Short path2: $shortPath2"
46+
2747
- name: Install Go
2848
uses: actions/setup-go@v2
2949
with:
30-
go-version: "1.21"
50+
go-version: "1.21.10"
3151

3252
- name: Run unit tests
33-
run: go test -v ./... -coverprofile=coverage_unit.txt
53+
run: |
54+
fsutil 8dot3name query D:
55+
go test -v ./... -coverprofile=coverage_unit.txt
3456
3557
- name: Send unit tests coverage to Codecov
3658
uses: codecov/codecov-action@v1

0 commit comments

Comments
 (0)