-
Notifications
You must be signed in to change notification settings - Fork 196
160 lines (147 loc) · 5.34 KB
/
Copy pathtests.yaml
File metadata and controls
160 lines (147 loc) · 5.34 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
name: Run Integration Tests
on:
workflow_call:
jobs:
test:
env:
DOTNET_CONFIGURATION: Release
DAPR_VERSION: "1.15.0"
TEST_PROJECT_PATH: tests/CommunityToolkit.Aspire.${{ matrix.name }}/CommunityToolkit.Aspire.${{ matrix.name }}.csproj
CI: true
NPM_CONFIG_PACKAGE_LOCK: false
runs-on: "${{ matrix.os }}"
timeout-minutes: 60
name: ${{ matrix.name }}-${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
name: [
# Hosting integration tests
Hosting.ActiveMQ.Tests,
Hosting.Adminer.Tests,
Hosting.Azure.Dapr.Redis.Tests,
Hosting.Azure.Dapr.Tests,
Hosting.Azure.DataApiBuilder.Tests,
Hosting.Azure.Extensions.Tests,
Hosting.Bun.Tests,
Hosting.Dapr.Tests,
Hosting.DbGate.Tests,
Hosting.Deno.Tests,
Hosting.Elasticsearch.Extensions.Tests,
Hosting.Flagd.Tests,
Hosting.Flyway.Tests,
Hosting.GoFeatureFlag.Tests,
Hosting.Golang.Tests,
Hosting.JavaScript.Extensions.Tests,
Hosting.Java.Tests,
Hosting.k6.Tests,
Hosting.Keycloak.Extensions.Tests,
Hosting.KurrentDB.Tests,
Hosting.LavinMQ.Tests,
Hosting.MailPit.Tests,
Hosting.McpInspector.Tests,
Hosting.Meilisearch.Tests,
Hosting.Minio.Tests,
Hosting.MongoDB.Extensions.Tests,
Hosting.MySql.Extensions.Tests,
Hosting.Ngrok.Tests,
Hosting.Ollama.Tests,
Hosting.OpenTelemetryCollector.Tests,
Hosting.Perl.Tests,
Hosting.PapercutSmtp.Tests,
Hosting.PostgreSQL.Extensions.Tests,
Hosting.PowerShell.Tests,
Hosting.Python.Extensions.Tests,
Hosting.RavenDB.Tests,
Hosting.Redis.Extensions.Tests,
Hosting.Rust.Tests,
Hosting.Sftp.Tests,
Hosting.Solr.Tests,
Hosting.SqlDatabaseProjects.Tests,
Hosting.Sqlite.Tests,
Hosting.SqlServer.Extensions.Tests,
Hosting.Stripe.Tests,
Hosting.SurrealDb.Tests,
Hosting.Umami.Tests,
Hosting.Zitadel.Tests,
# Client integration tests
GoFeatureFlag.Tests,
KurrentDB.Tests,
MassTransit.RabbitMQ.Tests,
Meilisearch.Tests,
Microsoft.Data.Sqlite.Tests,
Microsoft.EntityFrameworkCore.Sqlite.Tests,
Minio.Client.Tests,
OllamaSharp.Tests,
RavenDB.Client.Tests,
Sftp.Tests,
SurrealDb.Tests,
]
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Runtimes, Caching, and Tools
uses: ./.github/actions/setup-runtimes-caching
with:
name: ${{ matrix.name }}
docker-username: ${{ secrets.DOCKER_USERNAME }}
docker-password: ${{ secrets.DOCKER_PASSWORD }}
docker-registry: ${{ secrets.CUSTOM_CONTAINER_REGISTRY }}
- name: Verify Docker is running
run: docker info
- name: Build test project
env:
CI: false
run: |
dotnet build ${{ github.workspace }}/${{ env.TEST_PROJECT_PATH }} /bl --configuration ${{ env.DOTNET_CONFIGURATION }}
- name: Run tests
run: >-
dotnet run
--project "${{ github.workspace }}/${{ env.TEST_PROJECT_PATH }}"
--no-build
--configuration ${{ env.DOTNET_CONFIGURATION }}
--crashdump
--hangdump
--hangdump-timeout 7m
--results-directory "${{ github.workspace }}/testresults"
--filter-not-trait "category=failing"
--report-trx
--report-trx-filename "${{ matrix.name }}-${{ matrix.os }}.trx"
--coverage
--coverage-output-format cobertura
--coverage-output coverage.cobertura.xml
--report-github
env:
CUSTOM_CONTAINER_REGISTRY: ${{ secrets.CUSTOM_CONTAINER_REGISTRY }}
- name: Dump docker info
if: always()
run: |
docker container ls --all
docker container ls --all --format json
docker volume ls
docker network ls
- name: Upload bin log artifact
if: always()
uses: actions/upload-artifact@v7
with:
name: binlog-${{ matrix.name }}-${{ matrix.os }}
path: "**/*.binlog"
- name: Upload test results artifact
if: always()
uses: actions/upload-artifact@v7
with:
name: testresults-${{ matrix.name }}-${{ matrix.os }}
path: testresults/**
- name: Upload npm logs if failed
if: failure()
uses: actions/upload-artifact@v7
with:
name: npm-logs-${{ matrix.name }}-${{ matrix.os }}
path: ${{ runner.os == 'Windows' && 'C:\\npm\\cache\\_logs\\**' || '~/.npm/cache/_logs/**' }}
- name: Upload TypeScript app host logs if failed
if: failure()
uses: actions/upload-artifact@v7
with:
name: ts-app-host-logs-${{ matrix.name }}-${{ matrix.os }}
path: ${{ runner.os == 'Windows' && 'C:\\Users\\runneradmin\\.aspire\\logs\\**' || '/home/runner/.aspire/logs/**' }}