Skip to content

Commit 8eb4254

Browse files
authored
Merge pull request #54 from OrchardCMS/zl/update-2.1.6
Update for 2.1.6
2 parents 50ffcfa + 835851f commit 8eb4254

4 files changed

Lines changed: 60 additions & 24 deletions

File tree

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
push:
7+
branches: [ main ]
8+
9+
concurrency:
10+
group: ${{ github.head_ref || github.run_id }}
11+
cancel-in-progress: true
12+
13+
env:
14+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
15+
DOTNET_CLI_TELEMETRY_OPTOUT: true
16+
17+
jobs:
18+
build:
19+
name: Build
20+
runs-on: ${{ matrix.os }}
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
os: [ubuntu-24.04, windows-2022]
25+
26+
steps:
27+
- uses: actions/checkout@v4
28+
29+
- uses: OrchardCMS/OrchardCore/.github/actions/setup-dotnet@main
30+
31+
- name: Build
32+
# We disable NuGet audit warnings, see https://learn.microsoft.com/en-us/nuget/reference/errors-and-warnings/nu1901-nu1904.
33+
# Security issues being discovered in NuGet packages we use can happen at any time, and thus all our CI builds that
34+
# treat warnings as errors could break anytime, without us changing the code. This prevents that. Treating them as
35+
# warnings and other better approaches don't work, see https://github.com/OrchardCMS/OrchardCore/pull/16317.
36+
run: |
37+
dotnet build -c Release /p:TreatWarningsAsErrors=true /p:RunAnalyzers=true /p:NuGetAudit=false

Directory.Build.props

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<Project>
2+
3+
<PropertyGroup>
4+
<OrchardCoreVersion>2.1.6</OrchardCoreVersion>
5+
</PropertyGroup>
6+
7+
</Project>

NuGet.config

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,10 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
3-
<packageSources>
4-
<clear />
5-
<add key="NuGet" value="https://api.nuget.org/v3/index.json" />
6-
<!--
7-
This feed is intended for development purposes only and should not be used when publishing to NuGet.
8-
It is meant to be utilized exclusively in the dev branch while certain dependencies are unavailable on NuGet.org.
9-
10-
As multiple sources are being used, be sure to uncomment the 'packageSourceMapping' section below.
11-
-->
12-
<!-- add key="OrchardCore" value="https://nuget.cloudsmith.io/orchardcore/preview/v3/index.json" /-->
13-
</packageSources>
3+
<packageSources>
4+
<clear />
5+
<add key="NuGet" value="https://api.nuget.org/v3/index.json" />
6+
<add key="OrchardCore" value="https://nuget.cloudsmith.io/orchardcore/preview/v3/index.json" />
7+
</packageSources>
148

15-
<!--
16-
<packageSourceMapping>
17-
<packageSource key="OrchardCore">
18-
<package pattern="OrchardCore*" />
19-
<package pattern="SafeMode" />
20-
</packageSource>
21-
<packageSource key="NuGet">
22-
<package pattern="*" />
23-
</packageSource>
24-
</packageSourceMapping>
25-
-->
26-
27-
<disabledPackageSources />
9+
<disabledPackageSources />
2810
</configuration>

OrchardCore.Samples.sln

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
2222
EndProject
2323
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DashboardApplication", "DashboardApplication\DashboardApplication.csproj", "{1E751DAB-8A21-48EB-96E4-F0ED9C999462}"
2424
EndProject
25+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{02EA681E-C7D8-13C7-8484-4AC65E1B71E8}"
26+
EndProject
27+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{8BC87CB0-F8FD-427D-8F6D-CC95D6EA23FA}"
28+
ProjectSection(SolutionItems) = preProject
29+
.github\workflows\ci.yml = .github\workflows\ci.yml
30+
EndProjectSection
31+
EndProject
2532
Global
2633
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2734
Debug|Any CPU = Debug|Any CPU
@@ -52,6 +59,9 @@ Global
5259
GlobalSection(SolutionProperties) = preSolution
5360
HideSolutionNode = FALSE
5461
EndGlobalSection
62+
GlobalSection(NestedProjects) = preSolution
63+
{8BC87CB0-F8FD-427D-8F6D-CC95D6EA23FA} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8}
64+
EndGlobalSection
5565
GlobalSection(ExtensibilityGlobals) = postSolution
5666
SolutionGuid = {0AD5090C-3961-4E2B-9C72-D91ED2E7C1FA}
5767
EndGlobalSection

0 commit comments

Comments
 (0)