forked from ServiceStack/ServiceStack
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.41 KB
/
build-ormlite.yml
File metadata and controls
46 lines (37 loc) · 1.41 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
name: Build OrmLite
on:
push:
paths:
- 'ServiceStack.OrmLite/**'
- '.github/workflows/build-ormlite.yml'
jobs:
build-ormlite:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.100'
- name: Build
working-directory: ServiceStack.OrmLite/build
run: dotnet build ./build.proj
- name: Env setup
run: |
echo "SERVICESTACK_LICENSE=${{ secrets.SERVICESTACK_LICENSE }}" >> $GITHUB_ENV
- name: Tests Setup
working-directory: ServiceStack.OrmLite/tests
run: dotnet test --framework net8.0 ./ServiceStack.OrmLite.Tests.Setup/ServiceStack.OrmLite.Tests.Setup.csproj
- name: Test Sqlite
working-directory: ServiceStack.OrmLite/tests
env:
ORMLITE_DIALECT: Sqlite
run: dotnet test --framework net8.0 ./ServiceStack.OrmLite.SqliteTests/ServiceStack.OrmLite.SqliteTests.csproj --logger 'trx;LogFileName=test-results.trx'
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: OrmLite Tests
only-summary: 'true'
path: ./ServiceStack.OrmLite/tests/ServiceStack.OrmLite.SqliteTests/TestResults/test-results.trx
reporter: dotnet-trx