-
Notifications
You must be signed in to change notification settings - Fork 25
61 lines (61 loc) · 1.74 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: CI
on:
push:
branches:
- master
- release-*
pull_request:
workflow_dispatch:
env:
DOTNET_NOLOGO: true
jobs:
build:
name: Windows
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
with:
fetch-depth: 0
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4.0.0
with:
dotnet-version: 7.0.x
- name: Set up Node.js
uses: actions/setup-node@v4.0.2
with:
node-version: 21.6.x
# Build AngularJS and Vue apps
- name: Build AngularJS and Vue.js
run: .\build.ps1
working-directory: src/ServicePulse.Host
- name: Run Vue component tests
run: npm run test:component
working-directory: src/ServicePulse.Host/vue
- name: Run Vue application tests
run: npm run test:application
working-directory: src/ServicePulse.Host/vue
# .NET Build and run tests
- name: Build
run: dotnet build src --configuration Release
- name: Run .NET tests
uses: Particular/run-tests-action@v1.7.0
- name: Install test npm packages
run: npm install
working-directory: src/ServicePulse.Host.Tests
- name: Run Javascript tests
run: npm run test-firefox-ci
working-directory: src/ServicePulse.Host.Tests
# Upload assets and packages
- name: Upload assets
uses: actions/upload-artifact@v4.3.1
with:
name: Assets
path: src/ServicePulse.Host/bin/Release/
retention-days: 7
- name: Upload packages
uses: actions/upload-artifact@v4.3.1
with:
name: NuGet packages
path: nugets/
retention-days: 7