Skip to content

Commit

Permalink
chore: test
Browse files Browse the repository at this point in the history
  • Loading branch information
cherrynik committed Nov 21, 2023
1 parent 8c102f7 commit ae57ee6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ on: [ push ]

jobs:
Build:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [ ubuntu-latest, windows-latest ]

runs-on: ubuntu-latest # ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
with:
with:
submodules: recursive
token: ${{ secrets.PAT_TOKEN }}

Expand All @@ -23,7 +25,7 @@ jobs:
dotnet-version: 8.0.x

- name: Restore dependencies
run: dotnet restore
run: dotnet tool restore; dotnet restore

- name: Build
run: dotnet build --no-restore
Expand All @@ -34,4 +36,4 @@ jobs:
run: dotnet test --no-build --verbosity normal

- name: Run
run: dotnet run --project ./src/Apps/GameDesktop/GameDesktop.csproj -c Release -p:DefineConstants=IS_CI
run: dotnet run --project ./src/Apps/GameDesktop/GameDesktop.csproj --framework net8.0 -c Release -p:DefineConstants=IS_CI
8 changes: 4 additions & 4 deletions src/Apps/GameDesktop/GameDesktop.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@
<DependentUpon>Matcher.resx</DependentUpon>
</Compile>
</ItemGroup>
<Target Name="RestoreDotnetTools" BeforeTargets="Restore">
<Message Text="Restoring dotnet tools" Importance="High" />
<Exec Command="dotnet tool restore" />
</Target>
<!-- <Target Name="RestoreDotnetTools" BeforeTargets="Restore">-->
<!-- <Message Text="Restoring dotnet tools" Importance="High" />-->
<!-- <Exec Command="dotnet tool restore" />-->
<!-- </Target>-->
</Project>

0 comments on commit ae57ee6

Please sign in to comment.