-
Notifications
You must be signed in to change notification settings - Fork 13
52 lines (41 loc) · 1.23 KB
/
dotnet-core.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
name: .NET Core
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: [ 'csharp' ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Autobuild
id: build
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis
id: CodeQL_analysis
uses: github/codeql-action/analyze@v3
- name: Test
id: test
run: dotnet test tests/Autodesk.Forge.Core.Test/Autodesk.Forge.Core.Test.csproj
- name: Publish
id: publish_to_Nuget
if: ${{ github.event_name =='push' && github.ref == 'refs/heads/main'}}
run: |
dotnet msbuild src/Autodesk.Forge.Core/Autodesk.Forge.Core.csproj /t:Push
dotnet msbuild src/Autodesk.Forge.Core.E2eTestHelpers/Autodesk.Forge.Core.E2eTestHelpers.csproj /t:Push
env:
NugetApiKey: ${{ secrets.NUGETAPIKEYBYENGOPS }}