forked from OrchardCMS/OrchardCore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'OrchardCMS:main' into patch-1
- Loading branch information
Showing
2,432 changed files
with
36,376 additions
and
20,153 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Contributor Map | ||
|
||
on: | ||
# Running this automatically would require jumping through a lot of hoops because tunaitis/contributor-map commits to | ||
# the branch where the workflow was triggered, i.e. `main` for the schedule trigger. So, better to occasionally run | ||
# it manually in a PR. | ||
workflow_dispatch: | ||
|
||
jobs: | ||
update-contributor-map: | ||
name: Update Contributor Map | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Update Contributor Map | ||
uses: tunaitis/contributor-map@da8a84b848781bccaa56bc73519c055f4814e512 #v1 | ||
with: | ||
output: src/docs/community/contributors/images/contributors-map.svg |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
name: Monthly Issue and Pull Request Metrics | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
# Run on the first day of every month at 2:19 AM UTC. | ||
- cron: '19 2 1 * *' | ||
|
||
permissions: | ||
issues: write | ||
pull-requests: read | ||
|
||
jobs: | ||
build: | ||
name: Generate Issue and Pull Request Metrics | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Get Dates For Last Month | ||
shell: pwsh | ||
run: | | ||
# Calculate the first day of the previous month. | ||
$firstDay = (Get-Date).AddMonths(-1).ToString("yyyy-MM-01") | ||
# Calculate the last day of the previous month. | ||
$lastDay = (Get-Date $firstDay).AddMonths(1).AddDays(-1).ToString("yyyy-MM-dd") | ||
|
||
# Set an environment variable with the date range. | ||
Write-Output "$firstDay..$lastDay" | ||
Write-Output "LAST_MONTH=$firstDay..$lastDay" >> $env:GITHUB_ENV | ||
|
||
- name: Compute Issue Metrics | ||
uses: github/issue-metrics@v2 | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SEARCH_QUERY: 'repo:OrchardCMS/OrchardCore is:issue created:${{ env.LAST_MONTH }} -reason:"not planned" -label:"community metrics"' | ||
HIDE_TIME_TO_ANSWER: true | ||
|
||
- name: Rename Issue Metrics File | ||
shell: pwsh | ||
run: | | ||
# Renaming the file wouldn't work since other scripts will be denied access to it for some reason. | ||
Add-Content -Path ./community_metrics.md -Value (Get-Content -Path ./issue_metrics.md -Raw) | ||
- name: Compute Pull Request Metrics | ||
uses: github/issue-metrics@v2 | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SEARCH_QUERY: 'repo:OrchardCMS/OrchardCore is:pr created:${{ env.LAST_MONTH }} -label:dontmerge -label:notready -is:draft' | ||
HIDE_TIME_TO_ANSWER: true | ||
|
||
- name: Concatenate Issue and Pull Request Metrics | ||
shell: pwsh | ||
run: | | ||
$content = (Get-Content -Path ./issue_metrics.md -Raw) -replace '# Issue Metrics', '# Pull Request Metrics' | ||
Add-Content -Path ./community_metrics.md -Value ([Environment]::NewLine + $content) | ||
- name: Compute Q&A Discussion Request Metrics | ||
uses: github/issue-metrics@v2 | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SEARCH_QUERY: 'repo:OrchardCMS/OrchardCore type:discussions created:${{ env.LAST_MONTH }} category:Q&A' | ||
HIDE_TIME_TO_CLOSE: true | ||
|
||
- name: Concatenate Issue/PR and Discussion Metrics | ||
shell: pwsh | ||
run: | | ||
$content = (Get-Content -Path ./issue_metrics.md -Raw) -replace '# Issue Metrics', '# Discussion Metrics' | ||
Add-Content -Path ./community_metrics.md -Value ([Environment]::NewLine + $content) | ||
- name: Display Issue Metrics in Summary | ||
shell: pwsh | ||
run: | | ||
Get-Content ./community_metrics.md >> $env:GITHUB_STEP_SUMMARY | ||
- name: Create Issue | ||
# v4.0.1 | ||
uses: peter-evans/create-issue-from-file@433e51abf769039ee20ba1293a088ca19d573b7f | ||
with: | ||
title: Monthly community metrics report for ${{ env.LAST_MONTH }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
content-filepath: ./community_metrics.md | ||
labels: community metrics |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Main - CI | ||
on: | ||
push: | ||
paths-ignore: | ||
- '**/*.md' | ||
- 'mkdocs.yml' | ||
- 'src/docs/**/*' | ||
branches: [ main ] | ||
env: | ||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | ||
DOTNET_CLI_TELEMETRY_OPTOUT: true | ||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
name: Build & Test | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: "15" | ||
- uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: '8.0.x' | ||
- name: Build | ||
run: | | ||
dotnet build -c Release | ||
- name: Unit Tests | ||
run: | | ||
dotnet test -c Release --no-build ./test/OrchardCore.Tests/OrchardCore.Tests.csproj | ||
- name: Functional Tests | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
cd test/OrchardCore.Tests.Functional | ||
npm install | ||
npm run cms:test | ||
npm run mvc:test | ||
- uses: actions/upload-artifact@v2 | ||
if: matrix.os == 'ubuntu-latest' && failure() | ||
with: | ||
name: Functional Test failure | ||
path: | | ||
test/OrchardCore.Tests.Functional/cms-tests/cypress/screenshots | ||
src/OrchardCore.Cms.Web/App_Data_Tests/logs |
Oops, something went wrong.