-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (35 loc) · 1016 Bytes
/
Copy pathci.yml
File metadata and controls
45 lines (35 loc) · 1016 Bytes
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
name: ci
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: dependency boundary guard
run: |
go mod tidy
git diff --exit-code go.mod go.sum
- name: unit tests with coverage
run: go test ./... -coverprofile=coverage.out -covermode=atomic
- name: integration tests (mocked runner)
run: go test -tags=integration ./... -run Integration -count=1
- name: end-to-end tests (built binary + fake osascript)
run: go test -tags=e2e ./... -run E2E -count=1
- name: race tests
run: go test -race ./... -count=1
- name: upload coverage to codecov
uses: codecov/codecov-action@v5
with:
files: ./coverage.out
fail_ci_if_error: false