-
Notifications
You must be signed in to change notification settings - Fork 58
46 lines (37 loc) · 977 Bytes
/
buildandtest.yml
File metadata and controls
46 lines (37 loc) · 977 Bytes
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
name: buildtest
on:
push:
paths:
- '**.cs'
- '.github/workflows/*.yml'
pull_request:
paths:
- '**.cs'
- '.github/workflows/*.yml'
jobs:
buildandtest:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v4
with:
path: 'main'
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Get Thermo packages
uses: actions/checkout@v4
with:
repository: 'thermofisherlsms/RawFileReader'
path: 'ThermoPKG'
token: ${{ secrets.GITHUB_TOKEN }}
sparse-checkout: 'Libs/NetCore/Net8/*.nupkg'
sparse-checkout-cone-mode: 'false'
- name: Add Thermo packages as NuGet source
run: |
dotnet nuget add source -n ThermoPKG `pwd`/ThermoPKG/Libs/NetCore/Net8
- name: Build and test
run: |
cd main
dotnet build .
dotnet test .