Public intarface IAxoSequncer + Method set/get stepping mode #1331
Workflow file for this run
This file contains hidden or 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: pr-dev | |
on: | |
pull_request: | |
branches: [ "dev" ] | |
paths: | |
- 'src/**' | |
- 'cake/**' | |
- '.github/**' | |
- 'GitVersion.yaml' | |
workflow_dispatch: | |
jobs: | |
build: | |
strategy: | |
matrix: | |
configuration: [Release] | |
runs-on: [self-hosted, Windows, X64, L2, AX] # For a list of available runner types, refer to | |
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: '0' | |
- name: Get Branch Name | |
run: | | |
if ($env:GITHUB_REF -like "refs/pull/*") { | |
$BRANCH_NAME = "${{ github.event.pull_request.head.ref }}" | |
} else { | |
$BRANCH_NAME = $env:GITHUB_REF -replace 'refs/heads/', '' | |
} | |
Write-Host "Triggered on branch: $BRANCH_NAME" | |
"BRANCH_NAME=$BRANCH_NAME" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8 | |
shell: pwsh | |
- name: Get Short Commit SHA | |
run: | | |
$currentSHA = git rev-parse --short HEAD | |
"CURRENT_SHA=$currentSHA" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8 | |
shell: pwsh | |
- name: Setup | |
run: | | |
"TEST_EXIT_CODE=123" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8 | |
shell: pwsh | |
- name: "Build script" | |
run: dotnet build cake/Build.csproj | |
shell: pwsh | |
- name: "Run build script" | |
continue-on-error: true | |
env: | |
GH_TOKEN : ${{ secrets.GH_TOKEN }} | |
GH_USER : ${{ secrets.GH_USER }} | |
run: | | |
dotnet run --project cake/Build.csproj --do-test --test-level 1 | |
"TEST_EXIT_CODE=$LASTEXITCODE" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8 | |
shell: pwsh | |
- name: Display workflow details in Summary | |
run: | | |
if($env:TEST_EXIT_CODE -eq "123") | |
{ | |
$TEST_RESULT = "SKIPPED" | |
} | |
elseif($env:TEST_EXIT_CODE -eq "0") | |
{ | |
$TEST_RESULT = "PASSED" | |
} | |
else | |
{ | |
$TEST_RESULT = "FAILED" | |
} | |
"### Runner name: $env:RUNNER_NAME ::: Branch name: $env:BRANCH_NAME ::: Commit SHA: $env:CURRENT_SHA ::: Test result: $TEST_RESULT" | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append -Encoding utf8 | |
shell: pwsh | |
- name: Evaluate final result | |
run: | | |
if($env:TEST_EXIT_CODE -eq "123") | |
{ | |
echo "Tests skipped." | |
} | |
elseif($env:TEST_EXIT_CODE -eq "0") | |
{ | |
echo "Tests passed." | |
} | |
else | |
{ | |
echo "Tests failed." | |
Exit 1 | |
} | |
shell: pwsh | |