-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (35 loc) · 883 Bytes
/
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
name: .NET Build & UnitTests
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "src/**"
pull_request:
paths:
- "src/**"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
CONFIGURATION: Release
DOTNET_VERSION: 8.0.x
WORKING_DIRECTORY: src
TESTING_DIRECTORY: src
jobs:
build:
permissions:
contents: read
runs-on: windows-latest
steps:
- name: 🛒 Checkout
uses: actions/checkout@v4
- name: ✨ Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: 🚚 Restore
run: dotnet restore "${{ env.WORKING_DIRECTORY }}"
- name: 🛠️ Build
run: dotnet build "${{ env.WORKING_DIRECTORY }}" --configuration ${{ env.CONFIGURATION }} --no-restore