Skip to content

build(deps): bump xunit from 2.8.1 to 2.9.0 in /TransformerBeeClient … #213

build(deps): bump xunit from 2.8.1 to 2.9.0 in /TransformerBeeClient …

build(deps): bump xunit from 2.8.1 to 2.9.0 in /TransformerBeeClient … #213

name: Integration Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest]
dotnet-version: ["6.0.201", "7.0.100", "8.0.100"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Log into registry
# GHCR_PAT is a personal access token for the Github Container Registry; You can create it using the following steps:
# 1) Go to https://github.com/settings/tokens
# 2) Create a new token (classic as of 2024-01-31)
# 3) Select the following scopes: read:packages
# GHCR_USR is the username for the Github Container Registry; it has to match the PAT and is the username of the Github account that created the PAT
# You can update the tokens in the repository settings:
# https://github.com/Hochfrequenz/transformer.bee_client.net/settings/secrets/actions/GHCR_PAT
# https://github.com/Hochfrequenz/transformer.bee_client.net/settings/secrets/actions/GHCR_USR
# Tokens will expire 2025-01-31
run: echo "${{ secrets.GHCR_PAT }}" | docker login ghcr.io -u ${{ secrets.GHCR_USR }} --password-stdin
- name: Start containers
run: docker compose -f "TransformerBeeClient/TransformerBeeClient.IntegrationTest/docker-compose.yml" up -d
- name: Install dependencies
working-directory: TransformerBeeClient
run: dotnet restore TransformerBeeClient.sln
- name: Build
working-directory: TransformerBeeClient
run: dotnet build --no-restore
- name: Run Integration Tests
working-directory: TransformerBeeClient/TransformerBeeClient.IntegrationTest
run: |
dotnet test
- name: Run Integration Tests (against real service)
working-directory: TransformerBeeClient/TransformerBeeClient.IntegrationTest
env:
CLIENT_ID: ${{ secrets.AUTH0_TEST_CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.AUTH0_TEST_CLIENT_SECRET }}
run: |
dotnet test --filter TestCollectionName='authenticated'
- name: Run Integration Tests for Example Application
working-directory: TransformerBeeClient/ExampleAspNetCoreApplication.Test
run: |
dotnet build --no-restore
dotnet test