generated from amosproj/amos202Xss0Y-projname
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 978 Bytes
/
backend-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
name: Backend - CI
on:
pull_request:
branches:
- sprint-release
- main
paths:
- "backend/**"
push:
branches:
- '**'
jobs:
linting:
name: Check linting
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Restore dependencies
run: dotnet restore
working-directory: backend\src\BIE.DataPipeline
- name: Linting
run: dotnet format BIE.DataPipeline.sln
working-directory: backend\src\BIE.DataPipeline
tests:
needs: linting
name: Run Tests
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Restore dependencies
run: dotnet restore
working-directory: backend\src\BIE.DataPipeline
- name: Run unit tests
run: dotnet test
working-directory: backend\src\BIE.DataPipeline