-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (32 loc) · 1018 Bytes
/
main.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
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
tests:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Start dependencies
run: docker compose -f tests/docker-compose.yaml -f outbox/tests/docker-compose.yaml up -d
- name: Get cover tooling (1/2)
run: go get golang.org/x/tools/cmd/cover
- name: Get cover tooling (2/2)
run: go get github.com/mattn/goveralls
- name: Test Bunnify
run: go test -coverprofile=profile.bunnify.cov -coverpkg=./... ./...
- name: Test Outbox
run: cd outbox && go test -coverprofile=../profile.outbox.cov -coverpkg=./... ./...
- name: Merge coverage
run: 'cat profile.outbox.cov | grep -v "mode: set" >> profile.bunnify.cov'
- name: Send coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: profile.bunnify.cov
github-token: ${{ secrets.GITHUB_TOKEN }}