-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.16 KB
/
go-test-darwin.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: go test darwin
on: [pull_request, workflow_dispatch]
permissions:
contents: read
jobs:
go-test-darwin:
name: "go test with Senzing: ${{ matrix.senzingapi-version }}; OS: ${{ matrix.os }}; Go: ${{ matrix.go }}"
runs-on: ${{ matrix.os }}
strategy:
matrix:
go: ["1.21"]
os: [macos-13]
senzingapi-version: [staging-v4]
steps:
- name: checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: setup go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: install Senzing API
uses: senzing-factory/github-action-install-senzing-api@v3
with:
senzingapi-version: ${{ matrix.senzingapi-version }}
- name: run go test
run: go test -v -p 1 -coverprofile=./cover.out -covermode=atomic -coverpkg=./... ./...
- name: Store coverage file
uses: actions/upload-artifact@v4
with:
name: cover.out
path: ./cover.out
coverage:
name: coverage
needs: go-test-darwin
uses: senzing-factory/build-resources/.github/workflows/go-coverage.yaml@v2