Skip to content

Commit

Permalink
fix: ci macos
Browse files Browse the repository at this point in the history
Signed-off-by: gfanton <[email protected]>
  • Loading branch information
gfanton committed Jan 16, 2023
1 parent 10c05aa commit cc08932
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.golang }}

# https://github.com/mattn/go-sqlite3/tree/v1.14.16#mac-osx
- name: install sqlight (macos)
if: matrix.os == 'macos-latest'
run: |
brew install sqlite3
brew upgrade icu4c
- name: Cache Go modules
uses: actions/cache@v1
with:
Expand All @@ -58,5 +66,11 @@ jobs:
go mod tidy -v
git --no-pager diff go.mod go.sum
git --no-pager diff --quiet go.mod go.sum
- name: Run tests with race
run: go test -v -tags "libsqlite3" -race ./... -test.timeout=10m
- name: Run tests with race (macos)
if: matrix.os == 'macos-latest'
run: go test -v -tags "darwin" -race ./... -test.timeout=10m

- name: Run tests with race (linux)
if: matrix.os == 'ubuntu-latest'
run: go test -v -race ./... -test.timeout=10m

0 comments on commit cc08932

Please sign in to comment.