-
Notifications
You must be signed in to change notification settings - Fork 24
72 lines (59 loc) · 1.86 KB
/
meta-test.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Meta Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
name: "Build"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache
uses: actions/cache@v3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Setup .NET
uses: actions/setup-dotnet@v3
# Tests that the dotnet new template is valid
- name: Install
run: dotnet new install .
# Tests that the template follows the parent structure
# Tests that the dotnet new command works 'hona-vsa'
- name: Create new Project
run: |
mkdir -p ./temp/MyTestApp
cd ./temp/MyTestApp
dotnet new ssw-ca
# Tests that a fresh project can be built (in debug mode)
- name: Build fresh Project
run: |
cd ./temp/MyTestApp
dotnet build --configuration Debug
# Tests that a query can be generated
- name: Create a query
run: |
cd src/Application/Features
mkdir Products
cd Products
dotnet new ssw-ca-query --name GetProducts --entityName Product --slnName MyTestApp
# Tests that a query leaves the app in a buildable state
- name: Build after a query
run: |
cd ./temp/MyTestApp
dotnet build --configuration Release
# Tests that a command can be generated
- name: Create a command
run: |
cd src/Application/Features
cd Products
dotnet new ssw-ca-command --name CreateProduct --entityName Product --slnName MyTestApp
# Tests that a command leaves the app in a buildable state
- name: Build after a command
run: |
cd ./temp/MyTestApp
dotnet build --configuration Release