-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.02 KB
/
codecov.yml
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
47
48
name: Test and coverage
on:
push:
branches:
- master
- dev
pull_request:
branches:
- master
- dev
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- module: ./apps/server
name: server
- module: ./apps/notification
name: notification
- module: ./libs/queue
name: queue
- module: ./libs/template
name: template
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: actions/setup-go@v5
with:
go-version: '1.23'
- name: Run coverage
working-directory: ${{ matrix.module }}
run: |
go test -race -coverprofile=coverage.out -covermode=atomic ./...
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ${{ matrix.module }}/coverage.out
flags: ${{ matrix.module }}