-
Notifications
You must be signed in to change notification settings - Fork 4
37 lines (29 loc) · 840 Bytes
/
test.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
name: Test and coverage
on:
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22.6'
cache: false
- run: go generate -tags tools tools/tools.go
- name: go get
run: go get ./...
- name: Run coverage
run: |
gotestsum -- -v -race -coverprofile="coverage.out" -covermode=atomic ./...
env:
# https://github.com/testcontainers/testcontainers-go/issues/1782
TESTCONTAINERS_RYUK_DISABLED: true
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.5.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: FalcoSuessgott/vault-kubernetes-kms