fix: fix go test errors (#2169)

* fix: fix go test errors

* Add flags to mac test

* Run on all branches

* Update PR workflow

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
This commit is contained in:
Misite Bao
2022-12-06 06:45:06 +11:00
committed by GitHub
co-authored by Lea Anthony
parent 606ce3de1d
commit f70d9de366
125 changed files with 320 additions and 83 deletions
+10 -3
View File
@@ -48,7 +48,14 @@ jobs:
with:
go-version: ${{ matrix.go-version }}
- name: Run tests
- name: Run tests (mac)
if: matrix.os == 'macos-latest'
env:
CGO_LDFLAGS: -framework UniformTypeIdentifiers -mmacosx-version-min=10.13
working-directory: ./v2
run: |
go test -v ./...
run: go test -v ./...
- name: Run tests (!mac)
if: matrix.os != 'macos-latest'
working-directory: ./v2
run: go test -v ./...