Skip to content

Commit a96bf85

Browse files
authored
added build-and-test GitHub action
1 parent c7d3584 commit a96bf85

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

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

0 commit comments

Comments
 (0)