-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (36 loc) · 1.06 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
name: Ci
on:
push:
jobs:
ci:
runs-on: ubuntu-latest
name: Run build, test and lint
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0'
# 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.
- name: Run frontend ci
working-directory: ./src/ILICheck.Web/ClientApp
run: npm ci
- name: Install dependencies
run: dotnet restore
- name: Build dotnet
run: dotnet build
- name: Test
run: dotnet test
- name: Build frontend
working-directory: ./src/ILICheck.Web/ClientApp
run: npm run build --if-present
- name: Lint frontend
working-directory: ./src/ILICheck.Web/ClientApp
run: npm run lint
- name: Test frontend
working-directory: ./src/ILICheck.Web/ClientApp
run: npm run test