2021-01-14 22:32:24 +00:00
|
|
|
on: [push, pull_request]
|
|
|
|
name: "tests/macos"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-07-29 03:31:22 +00:00
|
|
|
go-version: [1.16.x]
|
2021-01-14 22:32:24 +00:00
|
|
|
platform: [macos-latest]
|
|
|
|
runs-on: ${{ matrix.platform }}
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-go@v2
|
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
|
|
|
|
- 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
|