-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 986 Bytes
/
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
name: CI
on:
push:
jobs:
ci:
runs-on: ubuntu-latest
name: Build and run tests
steps:
- uses: actions/checkout@v4
- name: Start db
run: docker-compose up -d db
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
# Run the npm ci command before building
# the dotnet project, because the project
# itself calls npm install if the node_modules
# folder does not exist.
- working-directory: ./src/ClientApp
run: npm ci
- run: dotnet build EWS.sln /warnaserror
- run: dotnet test EWS.sln --no-build --verbosity normal
- working-directory: ./src/ClientApp
run: npm run build --if-present
- working-directory: ./src/ClientApp
run: npm run lint
- working-directory: ./src/ClientApp
run: npm test