Skip to content

Commit 698e75b

Browse files
author
Eline Jorritsma
committed
Add Github build/test workflow
1 parent adcdf26 commit 698e75b

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: nuget
9+
directory: "/"
10+
schedule:
11+
interval: daily

.github/workflows/BUILD_AND_TEST.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build and Unit Test RFID Controller
2+
3+
on:
4+
push:
5+
branches: [ develop, main ]
6+
pull_request:
7+
branches: [ develop, main ]
8+
9+
jobs:
10+
build_test_dstv_net:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Setup .NET
15+
uses: actions/setup-dotnet@v3
16+
with:
17+
dotnet-version: 7.0.x
18+
- name: Restore dependencies
19+
run: dotnet restore SickRfid.sln
20+
- name: Build
21+
run: dotnet build SickRfid.sln --no-restore
22+
- name: Test
23+
run: dotnet test SickRfid.sln --no-build --verbosity normal

SickRfid/SickRfid.csproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,12 @@
2424
<None Include="images\icon.png" Pack="true" PackagePath="\"/>
2525
<None Include="$([MSBuild]::GetPathOfFileAbove('README.md', '$(MSBuildThisFileDirectory)../'))" Pack="true" PackagePath="\" />
2626
</ItemGroup>
27+
<ItemGroup>
28+
<Content Include="..\.github\dependabot.yml">
29+
<Link>.github\dependabot.yml</Link>
30+
</Content>
31+
<Content Include="..\.github\workflows\BUILD_AND_TEST.yml">
32+
<Link>.github\workflows\BUILD_AND_TEST.yml</Link>
33+
</Content>
34+
</ItemGroup>
2735
</Project>

0 commit comments

Comments
 (0)