-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (67 loc) · 1.57 KB
/
test_and_coverage.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Test
env:
KHEPER_TEST_WAIT_FOR: 500ms
KHEPER_TEST_WAIT_FOR_CAPTURE: 100ms
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }}
cancel-in-progress: true
on:
push:
branches:
- main
paths-ignore:
- '.github/workflows/**'
- '!.github/workflows/test_and_coverage.yml'
- 'docker/**'
- 'docs/**'
- 'mk/**'
- '.gitignore'
- '.golangci.yml'
- '.header'
- 'kheper.yml'
- 'LICENSE'
- 'Makefile'
- 'openapi.yml'
- 'README.md'
- 'redocly.yml'
- 'version'
pull_request:
paths-ignore:
- '.github/workflows/**'
- '!.github/workflows/test_and_coverage.yml'
- 'docker/**'
- 'docs/**'
- 'mk/**'
- '.gitignore'
- '.golangci.yml'
- '.header'
- 'kheper.yml'
- 'LICENSE'
- 'Makefile'
- 'openapi.yml'
- 'README.md'
- 'redocly.yml'
- 'version'
permissions:
contents: read
pull-requests: read
jobs:
test:
name: Test and Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
# TODO(fero): remove gofumpt after removing make test-coverage
- uses: luisnquin/setup-gofumpt@v2
- name: Test with Coverage
run: make test-coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
files: ./coverage.out
name: kheper
token: ${{ secrets.CODECOV_TOKEN }}
slug: mikefero/kheper