-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (42 loc) · 1.55 KB
/
integration-basic.yml
File metadata and controls
51 lines (42 loc) · 1.55 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Integration Tests Basic
on:
push:
branches: [ master, main ]
workflow_dispatch:
jobs:
integration-basic:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Restore
run: dotnet restore dbc_api_net.sln
- name: Build
run: dotnet build dbc_api_net.sln -c Release --no-restore
- name: Check integration secrets
id: secrets-check
run: |
if [ -z "${{ secrets.DBC_USERNAME }}" ] || [ -z "${{ secrets.DBC_PASSWORD }}" ]; then
echo "missing=true" >> "$GITHUB_OUTPUT"
else
echo "missing=false" >> "$GITHUB_OUTPUT"
fi
- name: Skip (missing secrets)
if: steps.secrets-check.outputs.missing == 'true'
run: |
echo "DBC_USERNAME/DBC_PASSWORD are not configured in repository secrets."
echo "Skipping basic integration tests."
- name: Run basic integration tests (net10)
if: steps.secrets-check.outputs.missing == 'false'
env:
DBC_USERNAME: ${{ secrets.DBC_USERNAME }}
DBC_PASSWORD: ${{ secrets.DBC_PASSWORD }}
DBC_INTEGRATION_FULL: "false"
run: |
dotnet test DeathByCaptcha/DeathByCaptcha.Tests/DeathByCaptcha.Tests.csproj \
-c Release --no-build -f net10.0 \
--filter "Category=Integration&Category!=Selenium&FullyQualifiedName!~FullApiSurface" \
--logger "console;verbosity=normal"