try to fix issue with battle being tried to start over and over again #130
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: Test pull request | |
on: | |
pull_request: | |
branches: [ master ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
workflow_run: | |
workflows: ["Auto-update PR from master"] | |
types: | |
- completed | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build and test Zero-K | |
runs-on: zk | |
steps: | |
#- name: Setup MSBuild Path | |
# uses: microsoft/[email protected] | |
# with: | |
# msbuild-architecture: x64 | |
- name: Try set up path | |
run: echo "c:\Program Files (x86)\MSBuild\14.0\Bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
- name: Setup NuGet | |
uses: NuGet/[email protected] | |
- name: Setup VSTest.console.exe | |
uses: darenm/Setup-VSTest@v1 | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
clean: false | |
- name: Restore NuGet Packages | |
run: nuget restore Zero-K.sln | |
- name: Build entire Zero-K | |
run: > | |
msbuild /t:Rebuild /p:Configuration=Release /p:Platform=x86 | |
/p:DeployOnBuild=true /p:PublishProfile=Profile1 | |
/p:DefineConstants="RELEASE" | |
/p:DefineConstants="TRACE" | |
/p:DefineConstants="TEST" | |
Zero-K.sln | |
- name: Run VSTest | |
run: vstest.console.exe /Platform:x86 /Framework:Framework45 /TestCaseFilter:TestCategory=Basic /Parallel /Logger:trx;LogFileName=test-results.trx ./Tests/bin/Tests.dll | |
shell: cmd | |
- name: Test Report C# | |
uses: dorny/test-reporter@v1 | |
if: success() || failure() # run this step even if previous step failed | |
with: | |
name: Test results C# # Name of the check run which will be created | |
path: TestResults/test-results.trx | |
reporter: dotnet-trx | |