-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (47 loc) · 1.7 KB
/
onPushMain.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
40
41
42
43
44
45
46
47
48
49
name: Unit tests
on:
push:
branches:
- main
jobs:
test-edge:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- image: mcr.microsoft.com/azure-sql-edge
- image: mcr.microsoft.com/mssql/server:2019-latest
- image: mcr.microsoft.com/mssql/server:2022-latest
steps:
- uses: actions/checkout@v4
- name: Checkout submodules
run: git submodule update --init
- uses: devcontainers/[email protected]
with:
runCmd: |
docker pull ${{matrix.image}}
sqltest runall --image ${{matrix.image}} --project ./latest/tSQLt.Edge.Tests --cc-include-tsqlt
sqltest runall --image ${{matrix.image}} --project ./latest/tSQLt.Edge.Tests.CaseSensitive --cc-include-tsqlt
sqltest runall --image ${{matrix.image}} --project ./latest/tSQLt.Original.Tests --cc-disable
sqltest runall --image ${{matrix.image}} --project ./current/Example.Tests
test-xmlresult:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout submodules
run: git submodule update --init
- uses: devcontainers/[email protected]
with:
runCmd: dotnet test ./latest/tSQLt.XmlResult.Tests
test-legacy:
runs-on: ubuntu-latest
env:
image: mcr.microsoft.com/mssql/server:2019-latest
steps:
- uses: actions/checkout@v4
- uses: devcontainers/[email protected]
with:
runCmd: |
docker pull ${{env.image}}
sqltest runall --image ${{env.image}} --project ./legacy/tSQLt.Unoriginal.Tests --cc-disable
sqltest runall --image ${{env.image}} --project ./legacy/Example.Tests