Migrate build to the official OneBranch template #131
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: build | |
on: | |
push: | |
branches: | |
- develop | |
- 'release_*' | |
pull_request: | |
branches: | |
- develop | |
- 'release_*' | |
jobs: | |
build: | |
name: Build Test | |
runs-on: windows-latest | |
# info about windows-latest https://github.com/actions/runner-images | |
env: | |
DROP_DIR: drop | |
TEST_RESULT_DIR: drop\testresults | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Build Everything | |
shell: powershell | |
run: ./build.ps1 | |
- name: Run Tests | |
run: dotnet test code.sln --configuration release --nologo --settings test\unittests\default.runsettings --results-directory ${{ env.TEST_RESULT_DIR }} --logger trx | |
- name: upload artifacts | |
uses: actions/upload-artifact@master | |
with: | |
name: release_drop | |
path: ${{ env.DROP_DIR }} |