chore : remove cache & list installed packages #4
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: Clean and Remove Old Dependencies | |
run: dotnet clean | |
- name: Restore Dependencies | |
run: dotnet restore | |
- name: Verify Installed Packages | |
run: dotnet list package | |
- name: Copy Environment Variables | |
run: cp .env.example .env | |
- name: Build Project | |
run: dotnet build --configuration Debug --no-restore | |
- name: Run Tests | |
run: dotnet test --logger trx --results-directory TestResults |