-
-
Notifications
You must be signed in to change notification settings - Fork 240
38 lines (30 loc) · 894 Bytes
/
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
name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
DOTNET_VERSION: 6.0.x
BICEP_VERSION: 0.28.1
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Use .NET ${{ env.DOTNET_VERSION }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Use Bicep ${{ env.BICEP_VERSION }}
run: |
az config set bicep.use_binary_from_path=false
az bicep install --version v${{ env.BICEP_VERSION }}
- name: Build project
run: dotnet build -c Release
- name: Lint C# code
run: dotnet format --verify-no-changes --exclude ACMESharpCore --verbosity detailed --no-restore
- name: Lint Bicep template
run: az bicep build -f azuredeploy.bicep && git diff --exit-code --quiet