-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (41 loc) · 1.02 KB
/
csharp.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
name: C#
on: push
jobs:
csharp:
strategy:
fail-fast: false
matrix:
net_version: [5, 6, 7, 8]
os: [ubuntu-latest]
include:
- net_version: 6
os: macos-latest
- net_version: 6
os: macos-13
- net_version: 6
os: windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Setup .NET ${{ matrix.net_version }}
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.net_version }}
cache: true
cache-dependency-path: 'csharp/*/packages.lock.json'
- name: Dependencies
run: make csdependencies
- name: Run Tests
run: make cstest
csharp-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET 8
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8
cache: true
cache-dependency-path: 'csharp/*/packages.lock.json'
- name: Run Linter
run: make cslint