-
Notifications
You must be signed in to change notification settings - Fork 1.6k
64 lines (54 loc) · 2.17 KB
/
build-redis.yml
File metadata and controls
64 lines (54 loc) · 2.17 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
name: Build Redis
on:
push:
paths:
- 'ServiceStack.Redis/**'
- '.github/workflows/build-redis.yml'
jobs:
build-redis:
runs-on: ubuntu-latest
services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd #v5
- name: Setup dotnet
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
- name: Build
working-directory: ServiceStack.Redis/build
run: dotnet build ./build.proj
- name: Env setup
run: |
echo "SERVICESTACK_LICENSE=${{ secrets.SERVICESTACK_LICENSE }}" >> $GITHUB_ENV
- name: Test Without Integration
working-directory: ServiceStack.Redis/tests
run: dotnet test --framework net10.0 ./ServiceStack.Redis.Tests/ServiceStack.Redis.Tests.csproj --filter TestCategory\!=Integration --logger 'trx;LogFileName=non-integration-results.trx'
- name: Non-Integration Tests Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: Redis Non-Integration Tests
path: ./ServiceStack.Redis/tests/ServiceStack.Redis.Tests/TestResults/non-integration-results.trx
reporter: dotnet-trx
only-summary: 'true'
- name: Test With Integration
id: test_integration
working-directory: ServiceStack.Redis/tests
run: dotnet test --framework net10.0 ./ServiceStack.Redis.Tests/ServiceStack.Redis.Tests.csproj --filter TestCategory=Integration --logger 'trx;LogFileName=integration-results.trx'
- name: Integration Tests Report
uses: dorny/test-reporter@v1
if: (success() || failure()) && steps.test_integration.outcome != 'skipped'
with:
name: Redis Integration Tests
path: ./ServiceStack.Redis/tests/ServiceStack.Redis.Tests/TestResults/integration-results.trx
reporter: dotnet-trx
only-summary: 'true'