improved link validator #22
This file contains 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: Test API | |
on: | |
push: | |
pull_request: | |
branches: ["master"] | |
env: | |
ASPNETCORE_ENVIRONMENT: Development | |
USER_SECRETS: ${{ secrets.USERSECRETS }} | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Restore API's workload and dependencies | |
working-directory: ./API | |
run: | | |
dotnet workload restore | |
dotnet restore API.csproj | |
- name: Build & Run API | |
working-directory: ./API | |
run: | | |
echo $USER_SECRETS > secrets.json | |
dotnet build --no-restore API.csproj | |
dotnet run --project ./API.csproj & | |
- name: Restore Tests's workload and dependencies | |
working-directory: ./Tests | |
run: | | |
dotnet workload restore | |
dotnet restore | |
- name: Build & Run Tests | |
working-directory: ./Tests | |
run: | | |
echo $USER_SECRETS > secrets.json | |
dotnet test --no-restore |