Skip to content

Commit e23f499

Browse files
committed
Added build and test action
1 parent 01cd3af commit e23f499

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/buildandtest.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: buildtest
2+
3+
on:
4+
push:
5+
paths:
6+
- '**.cs'
7+
- '.github/workflows/*.yml'
8+
pull_request:
9+
paths:
10+
- '**.cs'
11+
- '.github/workflows/*.yml'
12+
13+
jobs:
14+
build:
15+
16+
runs-on: 'ubuntu-latest'
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
with:
21+
path: 'main'
22+
23+
- name: Setup .NET
24+
uses: actions/setup-dotnet@v4
25+
with:
26+
dotnet-version: 8.0.x
27+
28+
- name: Get Thermo packages
29+
uses: actions/checkout@v4
30+
with:
31+
repository: 'thermofisherlsms/RawFileReader'
32+
path: 'ThermoPKG'
33+
token: ${{ secrets.GITHUB_TOKEN }}
34+
sparse-checkout: 'Libs/NetCore/Net8/*.nupkg'
35+
sparse-checkout-cone-mode: 'false'
36+
37+
- name: Add Thermo packages as NuGet source
38+
run: |
39+
dotnet nuget add source -n ThermoPKG `pwd`/ThermoPKG/Libs/NetCore/Net8
40+
41+
- name: Buld and test
42+
run: |
43+
cd main
44+
dotnet build .
45+
dotnet test .
46+

0 commit comments

Comments
 (0)