Skip to content

Commit 0df35d5

Browse files
feat: Update run-tests.yml to run test on push to the testing branch
1 parent 8870b41 commit 0df35d5

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/run-tests.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Run Tests on Push to Testing Branch
2+
3+
on:
4+
push:
5+
branches:
6+
- testing # Runs only when code is pushed to the 'testing' branch
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout Repository
14+
uses: actions/checkout@v4
15+
16+
- name: Setup .NET
17+
uses: actions/setup-dotnet@v3
18+
with:
19+
dotnet-version: '9.0.x'
20+
21+
- name: Restore Dependencies
22+
run: dotnet restore
23+
24+
- name: Copy Environment Variables
25+
run: cp .env.example .env
26+
27+
- name: Build Project
28+
run: dotnet build --configuration Debug --no-restore
29+
30+
- name: Run Tests
31+
run: dotnet test --logger trx --results-directory TestResults

0 commit comments

Comments
 (0)