fix: use appropriate route #9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Tests on Push to Testing Branch | |
on: | |
push: | |
branches: | |
- testing # Runs only when code is pushed to the 'testing' branch | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '9.0.x' | |
- name: Clear NuGet Cache (Prevents Stale Packages) | |
run: dotnet nuget locals all --clear | |
- name: Restore Dependencies (Force All Packages) | |
run: dotnet restore Bottle.sln --locked-mode | |
- name: Verify Installed Packages | |
run: dotnet list package | |
- name: Copy Environment Variables | |
run: cp .env.example .env | |
- name: Clean Build | |
run: dotnet clean Bottle.sln --configuration Debug | |
- name: Build Project | |
run: dotnet build Bottle.sln --configuration Debug --no-restore | |
- name: Run Tests | |
run: dotnet test Bottle.sln --logger trx --results-directory TestResults |