Finalize local dev env setup #6
Workflow file for this run
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: API (.NET Core) | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
working-directory: ./api | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 8.0.101 | |
- name: Install dependencies | |
run: dotnet restore | |
working-directory: ${{env.working-directory}} | |
- name: Build | |
run: dotnet build --configuration Release --no-restore | |
working-directory: ${{env.working-directory}} | |
- name: Test | |
run: dotnet test --no-restore --verbosity normal | |
working-directory: ${{env.working-directory}} |