Skip to content

Commit edebd2f

Browse files
authored
Create dotnet.yml
1 parent 653217e commit edebd2f

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
workflow_dispatch:
9+
10+
env:
11+
BUILD_CONFIGURATION: "Release"
12+
DOTNET_VERSION: "6.x"
13+
14+
jobs:
15+
build:
16+
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- uses: actions/checkout@v3
21+
22+
- name: Setup .NET
23+
uses: actions/setup-dotnet@v2
24+
with:
25+
dotnet-version: ${{ env.DOTNET_VERSION }}
26+
27+
- name: Restore dependencies
28+
run: dotnet restore
29+
30+
- name: Build
31+
run: dotnet build --no-restore --configuration '${{ env.BUILD_CONFIGURATION }}'
32+
33+
#- name: Test
34+
# run: dotnet test --no-build --verbosity normal --configuration '${{ env.BUILD_CONFIGURATION }}'

0 commit comments

Comments
 (0)