Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
matrix:
go-version: [1.21.x]
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
Expand All @@ -20,4 +20,5 @@ jobs:
run: go test -v -race ./...
- name: Format
if: matrix.go-version == '1.21.x'
shell: bash
run: diff -u <(echo -n) <(gofmt -d .)
3 changes: 2 additions & 1 deletion cmp/compare_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ func mustParseGolden(path string) map[string]string {
if err != nil {
panic(err)
}
s := string(b)
// Normalize CRLF to LF to support Windows.
s := strings.ReplaceAll(string(b), "\r\n", "\n")

out := map[string]string{}
for len(s) > 0 {
Expand Down
Loading