Skip to content

chore(deps): update dependency microsoft.identity.client to v4.56.0 (… #1195

chore(deps): update dependency microsoft.identity.client to v4.56.0 (…

chore(deps): update dependency microsoft.identity.client to v4.56.0 (… #1195

name: Build and Test
on:
push:
branches: [ master, integration ]
pull_request:
branches: [ master, integration ]
jobs:
build:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Debug --no-restore
- name: Unit Test
run: dotnet test --no-restore --verbosity normal /p:Exclude="[*.Test]*" /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput=TestResults/ --filter ExtractorUtils.Test.Unit. ./ExtractorUtils.Test/
if: ${{ github.event == 'pull_request' && github.base_ref == 'refs/heads/integration' }}
- name: Start Redis
uses: supercharge/redis-github-action@6dc7a5eeaf9a8f860b6464e05195a15f8b9f3bbb # 1.7.0
with:
redis-version: 5
- name: Test
run: dotnet test --no-restore --verbosity normal /p:Exclude="[*.Test]*" /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput=TestResults/ ./ExtractorUtils.Test/
if: ${{ github.event != 'pull_request' || github.base_ref == 'refs/heads/master' }}
env:
TEST_PROJECT: "extractor-tests"
TEST_HOST: "https://greenfield.cognitedata.com"
TEST_SCOPE: "https://greenfield.cognitedata.com/.default"
TEST_CLIENT_ID: ${{ secrets.BF_TEST_CLIENT_ID }}
TEST_TENANT: ${{ secrets.BF_TEST_TENANT }}
TEST_SECRET: ${{ secrets.BF_TEST_SECRET }}
BF_TEST_PROJECT: "extractor-bluefield-testing"
BF_TEST_HOST: "https://bluefield.cognitedata.com"
BF_TEST_SCOPE: "https://bluefield.cognitedata.com/.default"
BF_TEST_CLIENT_ID: ${{ secrets.BF_TEST_CLIENT_ID }}
BF_TEST_TENANT: ${{ secrets.BF_TEST_TENANT }}
BF_TEST_SECRET: ${{ secrets.BF_TEST_SECRET }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}