-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (52 loc) · 1.4 KB
/
build.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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow
name: Build
on:
push:
paths-ignore:
- ".github/workflows/create-zip-artifact.yml"
- ".github/ISSUE_TEMPLATE/*"
- ".github/dependabot.yml"
- ".vscode/*"
- "azure/*"
- "docs/*"
- "host.json"
- "**.md"
- ".gitignore"
pull_request:
paths-ignore:
- ".github/workflows/create-zip-artifact.yml"
- ".github/ISSUE_TEMPLATE/*"
- ".github/dependabot.yml"
- ".vscode/*"
- "azure/*"
- "docs/*"
- "host.json"
- "**.md"
- ".gitignore"
jobs:
build-function:
name: Build Azure Functions library
runs-on: ubuntu-latest
strategy:
matrix:
configuration: [ 'Release' ]
env:
DOTNET_NOLOGO: true
permissions:
contents: read
packages: read
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup dotnet SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Run 'dotnet restore'
run: dotnet restore
working-directory: 'src/SmallsOnline.AVD.ResourceManager'
- name: Run MSBuild
run: dotnet build --configuration "${{ matrix.configuration }}"
working-directory: 'src/SmallsOnline.AVD.ResourceManager'
- name: Upload code coverage
uses: codecov/codecov-action@v2