-
Notifications
You must be signed in to change notification settings - Fork 6
42 lines (39 loc) · 1.09 KB
/
ci-pr-dotnet.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
name: CI - Pull Requests - .NET API
on:
pull_request:
branches: [main]
paths-ignore:
- "src/caretogether-pwa/**"
- "src/b2c/**"
- "README.md"
- "LICENSE"
- ".gitignore"
- ".github/workflows/cd-prod-react.yml"
- ".github/workflows/cd-prod-dotnet.yml"
- ".github/workflows/ci-pr-react.yml"
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checkout the repo
- name: Check out source
uses: actions/checkout@v3
- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "18.x"
- name: Install Azurite storage emulator
run: npm install -g azurite
- name: Start Azurite storage emulator
shell: bash
run: azurite &
- name: Restore .NET dependencies
run: dotnet restore
- name: Build .NET solution
run: dotnet build --no-restore
- name: Test .NET solution
run: dotnet test --no-build --verbosity normal