-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (41 loc) · 1.16 KB
/
ci.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
name: build
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
test-build:
name: 👷 Test & Build
runs-on: ubuntu-latest
strategy:
max-parallel: 3
fail-fast: false
matrix:
goVer: ['1.22']
steps:
- uses: actions/checkout@v4
- name: Set up Go ${{ matrix.goVer }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.goVer }}
- name: Test via ${{ matrix.goVer }}
env:
STREAM_BASE_URL: ${{ vars.STREAM_BASE_URL }}
STREAM_API_KEY: ${{ vars.STREAM_API_KEY }}
STREAM_API_SECRET: ${{ secrets.STREAM_API_SECRET }}
run: |
go test -coverprofile cover.out -v -race ./...
go tool cover -func=cover.out
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./cover.out
flags: unittests
name: codecov-umbrella
# todo swap to true once codecov is properly configured
fail_ci_if_error: false