perkeep/.github/workflows/tests-macos.yml

35 lines
697 B
YAML

on:
push:
branches:
- "main"
pull_request:
# all PRs on all branches
name: "tests/macos"
jobs:
test:
strategy:
matrix:
go-version: [1.21.x]
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
devcam test