2023-12-30 20:16:34 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2024-01-14 01:11:57 +00:00
|
|
|
- "master"
|
2023-12-30 20:16:34 +00:00
|
|
|
pull_request:
|
|
|
|
# all PRs on all branches
|
2021-01-14 22:32:24 +00:00
|
|
|
name: "tests/macos"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2023-12-30 19:02:10 +00:00
|
|
|
go-version: [1.21.x]
|
2021-01-14 22:32:24 +00:00
|
|
|
platform: [macos-latest]
|
|
|
|
runs-on: ${{ matrix.platform }}
|
|
|
|
|
|
|
|
steps:
|
2024-01-14 23:16:18 +00:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-go@v5
|
2021-01-14 22:32:24 +00:00
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
|
2024-01-14 23:16:18 +00:00
|
|
|
- uses: actions/cache@v3
|
|
|
|
with:
|
|
|
|
path: ~/go/pkg/mod
|
|
|
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
|
|
restore-keys: ${{ runner.os }}-go-
|
|
|
|
|
2021-01-14 22:32:24 +00:00
|
|
|
- name: install sqlite
|
|
|
|
run: brew install sqlite3 pkg-config
|
|
|
|
|
|
|
|
- name: Build and test
|
|
|
|
run: |
|
2021-12-27 20:18:08 +00:00
|
|
|
go run make.go -v=true
|
|
|
|
devcam test
|