-
-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (30 loc) · 1.12 KB
/
container_apps_chat_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
name: Test Chat App
on:
push:
paths:
- "src/container_apps/Jordnaer.Chat/**"
- "tests/container_apps/Jordnaer.Chat.Tests/**"
- ".github/workflows/container_apps_chat_ci.yml"
env:
WORKING_DIRECTORY: tests/container_apps/Jordnaer.Chat.Tests
jobs:
test:
# Don't run the action if it was triggered by a tag push
if: github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.x"
- name: Test
# Dependabot cannot access secrets, so we disable this step for Dependabot
if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'
run: >
dotnet test "${{ env.WORKING_DIRECTORY }}"
--logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true"
--filter Category!=ManualTest
env:
ConnectionStrings__AppConfig: ${{ secrets.AZURE_APP_CONFIGURATION_CONNECTION_STRING }}