Skip to content

Update dotnet.yml

Update dotnet.yml #5

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: OpenMcdf pipeline .NET
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
buildConfiguration: Release
libFramework: netstandard2.0
appFramework: net6.0
# pay attention to slashes
testsProject: sources/Test/OpenMcdf.Test/OpenMcdf.Test.csproj
extensionTestsProject: sources/Test/OpenMcdf.Extensions.Test/OpenMcdf.Extensions.Test.csproj
buildProject: sources/OpenMcdf/OpenMcdf.csproj
# without filter it will timeout in azure AFTER 60+ min
testFilter: Name!=Test_FIX_BUG_GH_14&Name!=Test_FIX_BUG_GH_15
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration ${{buildConfiguration}} -f ${{libFramework}} ${{buildProject}}

Check failure on line 37 in .github/workflows/dotnet.yml

View workflow run for this annotation

GitHub Actions / OpenMcdf pipeline .NET

Invalid workflow file

The workflow is not valid. .github/workflows/dotnet.yml (Line: 37, Col: 12): Unrecognized named-value: 'buildConfiguration'. Located at position 1 within expression: buildConfiguration .github/workflows/dotnet.yml (Line: 39, Col: 12): Unrecognized named-value: 'appFramework'. Located at position 1 within expression: appFramework
- name: Test
run: dotnet test -f ${{appFramework}} ${{testsProject}} --filter=${{testFilter}}