Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Computr1x committed Nov 29, 2023
1 parent 765ca69 commit 33bc763
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ jobs:
build:
env:
BUILD_CONFIG: 'Release'
SOLUTION: 'ExNihilo.sln'
PROJECT: 'ExNihilo/ExNihilo.csproj'
TESTS: 'Tests/Tests.csproj'
PROJECT: './ExNihilo/ExNihilo.csproj'
TESTS: './Tests/Tests.csproj'

runs-on: ubuntu-latest

Expand All @@ -29,14 +28,14 @@ jobs:
with:
nuget-version: 'latest'
- name: Restore dependencies project
run: dotnet restore $SOLUTION/$PROJECT
run: dotnet restore $PROJECT
- name: Restore dependencies tests
run: dotnet restore $SOLUTION/$TESTS
run: dotnet restore $TESTS

- name: Build project
run: dotnet build $SOLUTION/$PROJECT --configuration $BUILD_CONFIG --no-restore
run: dotnet build $PROJECT --configuration $BUILD_CONFIG --no-restore
- name: Build tests
run: dotnet build $SOLUTION/$TESTS --configuration $BUILD_CONFIG --no-restore
run: dotnet build $TESTS --configuration $BUILD_CONFIG --no-restore

- name: Run tests
run: dotnet test /p:Configuration=$env:BUILD_CONFIG --no-restore --no-build --verbosity normal
run: dotnet test /p:Configuration=$BUILD_CONFIG --no-restore --no-build --verbosity normal

0 comments on commit 33bc763

Please sign in to comment.