CI: test on macOS

- Bump go-sqlite3 so that it includes the following fix:
  * https://github.com/mattn/go-sqlite3/pull/734
This commit is contained in:
aviau 2021-01-14 17:32:24 -05:00 committed by Alexandre Viau
parent 127297ff99
commit 602825f334
3 changed files with 38 additions and 3 deletions

35
.github/workflows/tests-macos.yml vendored Normal file
View File

@ -0,0 +1,35 @@
on: [push, pull_request]
name: "tests/macos"
jobs:
test:
strategy:
matrix:
go-version: [1.15.x]
platform: [macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-
- name: install sqlite
run: brew install sqlite3 pkg-config
- name: Symlink source into GOPATH for devcam
run: |
mkdir $(go env GOPATH)/src
ln -s $(pwd) $(go env GOPATH)/src/perkeep.org
- name: Build and test
run: |
go run make.go -v=true -sqlite=true
devcam test -sqlite=true

2
go.mod
View File

@ -37,7 +37,7 @@ require (
github.com/lib/pq v1.1.1
github.com/mailgun/mailgun-go v0.0.0-20171127222028-17e8bd11e87c
github.com/mattn/go-mastodon v0.0.5-0.20190517015615-8f6192e26b66
github.com/mattn/go-sqlite3 v1.6.0
github.com/mattn/go-sqlite3 v1.14.7-0.20201227235208-3cbdae750e52
github.com/miekg/dns v1.0.14
github.com/nf/cr2 v0.0.0-20140528043846-05d46fef4f2f
github.com/onsi/ginkgo v1.8.0 // indirect

4
go.sum
View File

@ -245,8 +245,8 @@ github.com/mattn/go-isatty v0.0.5/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hd
github.com/mattn/go-isatty v0.0.7/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
github.com/mattn/go-mastodon v0.0.5-0.20190517015615-8f6192e26b66 h1:TbnaLJhq+sFuqZ1wxdfF5Uk7A2J41iOobCCFnLI+RPE=
github.com/mattn/go-mastodon v0.0.5-0.20190517015615-8f6192e26b66/go.mod h1:ZBkemyyYYhNAN5JJ0H/ZSW8HfPCW45rHFHyWNwSfpTA=
github.com/mattn/go-sqlite3 v1.6.0 h1:TDwTWbeII+88Qy55nWlof0DclgAtI4LqGujkYMzmQII=
github.com/mattn/go-sqlite3 v1.6.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc=
github.com/mattn/go-sqlite3 v1.14.7-0.20201227235208-3cbdae750e52 h1:UyFNu0Tv5cEd/VPtY73BK//owiWwcBZvsOkwdVdR3FY=
github.com/mattn/go-sqlite3 v1.14.7-0.20201227235208-3cbdae750e52/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU=
github.com/mattn/go-tty v0.0.0-20190424173100-523744f04859/go.mod h1:XPvLUNfbS4fJH25nqRHfWLMa1ONC8Amw+mIA639KxkE=
github.com/miekg/dns v1.0.14 h1:9jZdLNd/P4+SfEJ0TNyxYpsK8N4GtfylBLqtbYN1sbA=
github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg=