Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
alessio-perugini committed Jun 14, 2024
1 parent 6444974 commit 653373b
Showing 1 changed file with 26 additions and 4 deletions.
30 changes: 26 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
matrix:
operating-system:
[
ubuntu-latest,
# ubuntu-latest,
windows-latest,
macos-latest,
# macos-latest,
]

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

- name: test P$
run: |
fsutil 8dot3name set D: 0
fsutil 8dot3name set 0
fsutil 8dot3name query C:
fsutil 8dot3name query D:
$path = "C:\Program Files\PowerShell\7\pwsh.exe"
"Long path: $path"
# convert it to 8.3 short name
$shortPath = (New-Object -ComObject Scripting.FileSystemObject).GetFile($path).ShortPath
"Short path: $shortPath"
$path2 = "D:\a\go-paths-helper\go-paths-helper\testdata\fileset\anotherFile"
"Long path2: $path2"
# convert it to 8.3 short name
$shortPath2 = (New-Object -ComObject Scripting.FileSystemObject).GetFile($path2).ShortPath
"Short path2: $shortPath2"
- 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 query D:
go test -v ./... -coverprofile=coverage_unit.txt
- name: Send unit tests coverage to Codecov
uses: codecov/codecov-action@v1
Expand Down

0 comments on commit 653373b

Please sign in to comment.