-
Notifications
You must be signed in to change notification settings - Fork 112
48 lines (39 loc) · 955 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
40
41
42
43
44
45
46
47
48
# CI workflow for PRs and merges to master
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
env:
DOTNET_NOLOGO: true
steps:
- uses: actions/checkout@v3
with:
lfs: true
- uses: actions/setup-dotnet@v3
with:
dotnet-version: |
3.1.x
6.0.x
- run: dotnet --info
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: csharp
- name: Build and test (win)
run: ./build ci
shell: cmd
if: ${{ runner.os == 'Windows' }}
## Only difference here is not forcing cmd
- name: Build and test (!win)
run: ./build ci
if: ${{ runner.os != 'Windows' }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2