-
Notifications
You must be signed in to change notification settings - Fork 4
33 lines (32 loc) · 1.09 KB
/
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
name: CI
on:
workflow_dispatch:
push:
jobs:
build-test:
runs-on: ubuntu-latest
name: Build and run tests
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup .NET SDK 6.0
uses: actions/[email protected]
with:
dotnet-version: 6.0.419
source-url: ${{ secrets.NUGET_SOURCE }}
env:
NUGET_AUTH_TOKEN: ${{ secrets.PACKAGES_TOKEN }}
- name: Setup .NET SDK 8.0
uses: actions/[email protected]
with:
dotnet-version: 8.0.201
source-url: ${{ secrets.NUGET_SOURCE }}
env:
NUGET_AUTH_TOKEN: ${{ secrets.PACKAGES_TOKEN }}
- name: Build solution
run: dotnet build --configuration Release
- name: Run tests
run: dotnet test --configuration Release