Skip to content

[VID-107]: Custom logger docs #76

[VID-107]: Custom logger docs

[VID-107]: Custom logger docs #76

Workflow file for this run

name: build
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
test-build:
name: 👷 Test & Build
environment: ci
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