wip #142
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
push: | |
pull_request: | |
jobs: | |
test-matrix: | |
strategy: | |
matrix: | |
operating-system: | |
[ | |
# ubuntu-latest, | |
windows-latest, | |
# macos-latest, | |
] | |
runs-on: ${{ matrix.operating-system }} | |
steps: | |
- name: Disable EOL conversions | |
run: git config --global core.autocrlf false | |
- 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.10" | |
- name: Run unit tests | |
run: | | |
go test -v ./... -coverprofile=coverage_unit.txt | |
- name: Send unit tests coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
file: ./coverage_unit.txt | |
flags: unit |