fix(ci): Update build and package commands for API and webapp projects #927
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: .NET Build & Test | |
permissions: | |
contents: read | |
env: | |
SOLUTION: 'WoWS-Karma.sln' | |
on: | |
- push | |
- pull_request | |
- workflow_call | |
jobs: | |
build-test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: '8.0.x' | |
# include-prerelease: true | |
- name: Restore dependencies | |
run: dotnet restore ${{ env.SOLUTION }} | |
- name: Build | |
run: dotnet build --no-restore ${{ env.SOLUTION }} | |
- name: Test | |
run: dotnet test --no-build ${{ env.SOLUTION }} |