-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (42 loc) · 1.2 KB
/
ci.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
name: DNI Stream Website CI Build
on:
push:
branches: [ master, feature/* ]
pull_request:
branches: [ master ]
jobs:
dotnetapi:
env:
ASPNET_CONFIGURATION: Debug
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.101
- name: Install .Net dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --nologo -c $ASPNET_CONFIGURATION
- name: Test
run: for dir in test/*.Tests/; do (cd "$dir" && dotnet test -c $ASPNET_CONFIGURATION --no-restore --no-build --nologo --filter TestType!=Integration); done
angularweb:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 12.16.1
- name: Install Angular Dependencies
working-directory: ./src/DNI.Web
run: |
npm set progress=false
npm install --no-progress
- name: Angular Lint
working-directory: ./src/DNI.Web
run: npm run lint
- name: Build Angular SSR
working-directory: ./src/DNI.Web
run: npm run build:ssr