mirror of
https://github.com/logos-messaging/go-libp2p-rendezvous.git
synced 2026-01-02 12:53:13 +00:00
fix: ci macos
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
This commit is contained in:
parent
10c05aa28d
commit
cc0893258c
18
.github/workflows/go.yml
vendored
18
.github/workflows/go.yml
vendored
@ -44,6 +44,14 @@ jobs:
|
|||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: ${{ matrix.golang }}
|
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
|
- name: Cache Go modules
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
@ -58,5 +66,11 @@ jobs:
|
|||||||
go mod tidy -v
|
go mod tidy -v
|
||||||
git --no-pager diff go.mod go.sum
|
git --no-pager diff go.mod go.sum
|
||||||
git --no-pager diff --quiet 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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user