Skip to content

Commit 51d518a

Browse files
committed
Created workflow for running tests
1 parent 7ebf18f commit 51d518a

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/tests.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
paths: [ .github/workflows/tests.yml, RtcServer/**, RtcServerTests/** ]
7+
pull_request:
8+
branches: [ main ]
9+
paths: [ .github/workflows/tests.yml, RtcServer/**, RtcServerTests/** ]
10+
11+
jobs:
12+
test:
13+
name: Run Tests
14+
runs-on: ubuntu-22.04
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Install libmsquic
20+
run: |
21+
wget https://packages.microsoft.com/ubuntu/22.04/prod/pool/main/libm/libmsquic/libmsquic_2.4.8_amd64.deb && \
22+
sudo dpkg -i libmsquic_2.4.8_amd64.deb && \
23+
sudo apt install -fy
24+
25+
- name: Setup .NET
26+
uses: actions/setup-dotnet@v4
27+
with:
28+
dotnet-version: 9.x
29+
30+
- name: Restore projects
31+
run: dotnet restore
32+
33+
- name: Build projects
34+
run: dotnet build --no-restore
35+
36+
- name: Run tests
37+
run: dotnet test --no-build

0 commit comments

Comments
 (0)