Skip to content

Commit

Permalink
Fix 'Github Actions' configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
lycantropos committed Jul 19, 2023
1 parent e3dff36 commit 73803c9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,18 +145,18 @@ jobs:
run: >
dotnet new classlib -o ${{ env.TEST_PROJECT_NAME }}
--target-framework-override ${{ matrix.dotnet_runtime_version }}
# fixes "CS8370: Feature 'file-scoped namespace' is not available in C# 7.3"
&& dotnet format ${{ env.TEST_PROJECT_NAME }} --diagnostics IDE0160
- name: >
fix "CS8370: Feature 'file-scoped namespace' is not available in C# 7.3"
run: dotnet format ${{ env.TEST_PROJECT_NAME }} --diagnostics IDE0160
- name: 'Install'
run: >
dotnet add ${{ env.TEST_PROJECT_NAME }} package
${{ env.PROJECT_NAME }} -v ${GITHUB_REF_NAME#v}
- name: 'Build test project'
run: |
dotnet build
# fixes "CS8630: Invalid 'nullable' value: 'Enable' for C# 7.3"
--property:Nullable=disable
# fixes "CS8370: Feature 'global using directive' is not available in C# 7.3"
# "Nullable=disable" fixes "CS8630: Invalid 'nullable' value: 'Enable' for C# 7.3"
# "ImplicitUsings=disable" fixes "CS8370: Feature 'global using directive' is not available in C# 7.3"
run: >
dotnet build --property:Nullable=disable
--property:ImplicitUsings=disable
${{ env.TEST_PROJECT_NAME }}
Expand Down

0 comments on commit 73803c9

Please sign in to comment.