forked from ServiceStack/ServiceStack
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 1.16 KB
/
build-text.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
35
36
37
38
39
name: Build ServiceStack.Text
on:
push:
paths:
- 'ServiceStack.Text/**'
- '.github/workflows/build-text.yml'
jobs:
build-text:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0'
include-prerelease: true
- name: Build
working-directory: ServiceStack.Text/build
run: dotnet build ./build.proj
- name: Env setup
run: |
echo "SERVICESTACK_LICENSE=${{ secrets.SERVICESTACK_LICENSE }}" >> $GITHUB_ENV
- name: Text tests
run: dotnet test --framework net6.0 ./ServiceStack.Text/tests/ServiceStack.Text.Tests/ServiceStack.Text.Tests.csproj --logger 'trx;LogFileName=test-results.trx'
- name: Text Tests Report
uses: dorny/test-reporter@v1
if: (success() || failure()) && steps.test_integration.outcome != 'skipped'
with:
name: Text Tests
path: ./ServiceStack.Text/tests/ServiceStack.Text.Tests/TestResults/test-results.trx
reporter: dotnet-trx
only-summary: 'true'