Skip to content

refactor: use adal lib for access token generation and add support fo… #74

refactor: use adal lib for access token generation and add support fo…

refactor: use adal lib for access token generation and add support fo… #74

name: Client module unit tests
on:
push:
branches:
- main
paths:
- ".github/workflows/client-coverage.yaml"
- "client/**"
pull_request:
types: [opened, synchronize, reopened, labeled, unlabeled]
paths:
- ".github/workflows/client-coverage.yaml"
- "client/**"
jobs:
unit_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.23'
- name: Run unit tests with coverage
run: |
cd client
make test-coverage
sed '/mocks.go/d' coverage_raw.out > ../coverage.out
- uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
file: coverage.out
format: golang