This repository has been archived by the owner on Apr 16, 2024. It is now read-only.
Fix issue #237 for write OPC UA nodes #1613
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-test-inspect-workflow | |
on: | |
pull_request: | |
branches: | |
- master | |
types: [opened, synchronize, reopened, edited] | |
push: | |
branches: | |
- master | |
jobs: | |
Build-test-inspect: | |
runs-on: windows-latest | |
if: contains(github.event.pull_request.body, 'The workflow build-test-inspect was intentionally skipped.') == false | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup MSBuild | |
uses: microsoft/setup-msbuild@v1.0.0 | |
with: | |
vs-version: 15 | |
- name: Setup NuGet | |
uses: NuGet/setup-nuget@v1.0.2 | |
- name: Install .NET core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '3.1.100' | |
- name: Cache local nuget tools | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-local-nuget-tools | |
with: | |
path: tools | |
key: ${{ env.cache-name }}-${{ hashFiles('src/InstallToolsForBuildTestInspect.ps1') }}-${{ hashFiles('src/.config/dotnet-tools.json') }}-2020-10-28 | |
- name: Cache global nuget packages | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-global-nuget-packages | |
with: | |
path: ~/.nuget/packages/ | |
key: ${{ env.cache-name }}-${{ hashFiles('src/InstallToolsForBuildTestInspect.ps1') }}-${{ hashFiles('src/.config/dotnet-tools.json') }}-2020-10-28 | |
- name: Install tools for build-test-inspect | |
working-directory: src | |
run: powershell .\InstallToolsForBuildTestInspect.ps1 | |
- name: Install build dependencies | |
working-directory: src | |
run: powershell .\InstallBuildDependencies.ps1 | |
- name: Install coveralls.net (to send test coverage) | |
working-directory: src | |
run: dotnet tool install coveralls.net --version 2.0.0-beta0002 | |
- name: Build | |
working-directory: src | |
run: powershell .\BuildForDebug.ps1 | |
- name: Check that all Doctests are there | |
working-directory: src | |
run: powershell .\Doctest.ps1 -check | |
- name: Cache sample AASXs | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-sample-aasx | |
with: | |
path: sample-aasx | |
key: ${{ env.cache-name }}-${{ hashFiles('src/DownloadSamples.ps1') }}-2020-08-01 | |
- name: Download samples | |
working-directory: src | |
run: powershell .\DownloadSamples.ps1 | |
- name: Test | |
working-directory: src | |
run: powershell .\Test.ps1 | |
- name: Send to Coveralls | |
working-directory: src | |
env: | |
HEAD_REF: ${{ github.head_ref }} | |
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
run: | | |
$headRef = ${env:HEAD_REF} | |
if (${env:GITHUB_REF}.StartsWith("refs/pull/")) | |
{ | |
$branch = $headRef -Replace 'refs/heads/', '' | |
} | |
else | |
{ | |
$branch = ${env:GITHUB_REF} -replace 'refs/heads/', '' | |
} | |
$commit = $env:GITHUB_SHA | |
echo "Branch is: $branch" | |
echo "Commit is: $commit" | |
dotnet tool run csmacnz.Coveralls --opencover -i ..\artefacts\CoverageResults.xml --useRelativePaths --repoToken $env:COVERALLS_REPO_TOKEN --commitId $commit --commitBranch $branch | |
- name: Inspect code | |
working-directory: src | |
run: powershell .\InspectCode.ps1 |