Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
urbanit committed Nov 28, 2023
2 parents 04c21f6 + 4482cb0 commit 5aeeb98
Show file tree
Hide file tree
Showing 3,336 changed files with 98,475 additions and 130,741 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
117 changes: 117 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -2690,6 +2690,123 @@
"contributions": [
"doc"
]
},
{
"login": "rros",
"name": "Robert Ros",
"avatar_url": "https://avatars.githubusercontent.com/u/279664?v=4",
"profile": "https://www.robertros.nl/",
"contributions": [
"code"
]
},
{
"login": "0liver",
"name": "0liver",
"avatar_url": "https://avatars.githubusercontent.com/u/164360?v=4",
"profile": "https://github.com/0liver",
"contributions": [
"doc"
]
},
{
"login": "al3xjohnson",
"name": "Alex Johnson",
"avatar_url": "https://avatars.githubusercontent.com/u/5759745?v=4",
"profile": "https://github.com/al3xjohnson",
"contributions": [
"doc"
]
},
{
"login": "derandre84",
"name": "André Göpel",
"avatar_url": "https://avatars.githubusercontent.com/u/22834588?v=4",
"profile": "https://github.com/derandre84",
"contributions": [
"code"
]
},
{
"login": "wAsnk",
"name": "Krisztián Németh",
"avatar_url": "https://avatars.githubusercontent.com/u/19938236?v=4",
"profile": "https://github.com/wAsnk",
"contributions": [
"code"
]
},
{
"login": "BinderDyn",
"name": "Marvin",
"avatar_url": "https://avatars.githubusercontent.com/u/43495737?v=4",
"profile": "https://github.com/BinderDyn",
"contributions": [
"code"
]
},
{
"login": "dministro",
"name": "József Horváth",
"avatar_url": "https://avatars.githubusercontent.com/u/15349881?v=4",
"profile": "https://github.com/dministro",
"contributions": [
"code"
]
},
{
"login": "brutoledo",
"name": "Bruno Toledo",
"avatar_url": "https://avatars.githubusercontent.com/u/5890282?v=4",
"profile": "https://github.com/brutoledo",
"contributions": [
"doc"
]
},
{
"login": "dannyd89",
"name": "Daniel Draghici",
"avatar_url": "https://avatars.githubusercontent.com/u/15252548?v=4",
"profile": "https://github.com/dannyd89",
"contributions": [
"code"
]
},
{
"login": "ludovic-th",
"name": "ludovic-th",
"avatar_url": "https://avatars.githubusercontent.com/u/65158865?v=4",
"profile": "https://github.com/ludovic-th",
"contributions": [
"code"
]
},
{
"login": "emrahtokalak",
"name": "Emrah Tokalak",
"avatar_url": "https://avatars.githubusercontent.com/u/90242?v=4",
"profile": "http://emrahtokalak.com/",
"contributions": [
"code"
]
},
{
"login": "vjacquet",
"name": "vjacquet",
"avatar_url": "https://avatars.githubusercontent.com/u/6363920?v=4",
"profile": "https://github.com/vjacquet",
"contributions": [
"code"
]
},
{
"login": "yaricrolletservico",
"name": "yaricrolletservico",
"avatar_url": "https://avatars.githubusercontent.com/u/101557629?v=4",
"profile": "https://github.com/yaricrolletservico",
"contributions": [
"code"
]
}
],
"skipCi": true
Expand Down
225 changes: 222 additions & 3 deletions .editorconfig

Large diffs are not rendered by default.

50 changes: 28 additions & 22 deletions .github/workflows/functional_all_db.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: Functional Tests - all Databases
on:
# manual trigger
# manual trigger
workflow_dispatch:
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true

jobs:
test_functional_mvc:
name: Functional Tests - MVC
Expand All @@ -13,12 +14,13 @@ jobs:
image: cypress/included:9.6.1
steps:
- uses: actions/checkout@v3
# We need to install dotnet in the docker container.
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- uses: actions/setup-node@v3
with:
node-version: "16"
# - name: Fix nuget restore issue
# run: |
# apt update && apt --only-upgrade install ca-certificates -y
node-version: "15"
- name: Functional Tests
run: |
cd test/OrchardCore.Tests.Functional
Expand All @@ -38,9 +40,10 @@ jobs:
image: cypress/included:9.6.1
steps:
- uses: actions/checkout@v3
- name: Fix nuget restore issue
run: |
apt update && apt --only-upgrade install ca-certificates -y
# We need to install dotnet in the docker container.
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: Functional Tests
run: |
cd test/OrchardCore.Tests.Functional
Expand Down Expand Up @@ -78,9 +81,10 @@ jobs:
OrchardCore__DatabaseProvider: "Postgres"
steps:
- uses: actions/checkout@v3
- name: Fix nuget restore issue
run: |
apt update && apt --only-upgrade install ca-certificates -y
# We need to install dotnet in the docker container.
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: Functional Tests
run: |
cd test/OrchardCore.Tests.Functional
Expand All @@ -94,29 +98,30 @@ jobs:
test/OrchardCore.Tests.Functional/cms-tests/cypress/screenshots
src/OrchardCore.Cms.Web/App_Data/logs
retention-days: 3

test_functional_cms_mysql:
name: Functional Tests - CMS MySql
runs-on: ubuntu-latest
container:
image: cypress/included:9.6.1
services:
mariadb:
image: mariadb:latest
mysql:
image: mysql:8
ports:
- 3306
env:
MYSQL_DATABASE: test
MYSQL_ROOT_PASSWORD: test123
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
env:
OrchardCore__ConnectionString: "server=mariadb;uid=root;pwd=test123;database=test"
OrchardCore__ConnectionString: "server=mysql;uid=root;pwd=test123;database=test"
OrchardCore__DatabaseProvider: "MySql"
steps:
- uses: actions/checkout@v3
- name: Fix nuget restore issue
run: |
apt update && apt --only-upgrade install ca-certificates -y
# We need to install dotnet in the docker container.
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: Functional Tests
run: |
cd test/OrchardCore.Tests.Functional
Expand Down Expand Up @@ -149,9 +154,10 @@ jobs:
OrchardCore__DatabaseProvider: "SqlConnection"
steps:
- uses: actions/checkout@v3
- name: Fix nuget restore issue
run: |
apt update && apt --only-upgrade install ca-certificates -y
# We need to install dotnet in the docker container.
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: Functional Tests
run: |
cd test/OrchardCore.Tests.Functional
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/mac_unit_test_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ jobs:
- uses: actions/checkout@v3
- name: Build and test
run: |
dotnet build -c Release -f net7.0
dotnet build -c Release -f net6.0
dotnet build -c Release -f net8.0
dotnet test -c Release --no-restore --no-build ./test/OrchardCore.Tests/OrchardCore.Tests.csproj
6 changes: 4 additions & 2 deletions .github/workflows/pr_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ jobs:
- 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 -f net7.0
dotnet build -c Release -f net6.0
dotnet build -c Release -f net8.0
- name: Unit Tests
run: |
dotnet test -c Release --no-build ./test/OrchardCore.Tests/OrchardCore.Tests.csproj
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/preview_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: "15"
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: Set build number
if: matrix.os == 'ubuntu-latest'
run: echo "BuildNumber=$(( $GITHUB_RUN_NUMBER + 16368 ))" >> $GITHUB_ENV
- name: Build
run: |
dotnet build -c Release -f net7.0
dotnet build -c Release -f net6.0
dotnet build -c Release -f net8.0
- name: Unit Tests
run: |
dotnet test -c Release --no-build ./test/OrchardCore.Tests/OrchardCore.Tests.csproj
Expand All @@ -50,7 +52,7 @@ jobs:
if: matrix.os == 'ubuntu-latest'
run: |
dotnet pack -c Release --no-build
dotnet nuget push './src/**/*.nupkg' -k ${{secrets.CLOUDSMITH_API_KEY}} -n -s https://nuget.cloudsmith.io/orchardcore/preview/v3/index.json --skip-duplicate
dotnet nuget push './src/**/*.nupkg' -t 600 -k ${{secrets.CLOUDSMITH_API_KEY}} -n -s https://nuget.cloudsmith.io/orchardcore/preview/v3/index.json --skip-duplicate
- name: Login to DockerHub
if: matrix.os == 'ubuntu-latest'
uses: docker/login-action@v1
Expand All @@ -64,16 +66,16 @@ jobs:
Get-ChildItem ./src/OrchardCore.Cms.Web/App_Data -Recurse | Remove-Item -Recurse -Confirm:$false
Get-ChildItem ./src/OrchardCore.Cms.Web/App_Data_Tests -Recurse | Remove-Item -Recurse -Confirm:$false
$output = [System.IO.Path]::GetFullPath("./.build/release")
dotnet publish -c Release --property:PublishDir=$output --no-build --framework net7.0
docker build -f Dockerfile-CI -t orchardproject/orchardcore-cms-linux:dev .
dotnet publish -c Release --property:PublishDir=$output --no-build --framework net8.0
docker build -f Dockerfile-CI --platform=linux/amd64 -t orchardproject/orchardcore-cms-linux:dev .
docker push orchardproject/orchardcore-cms-linux:dev
- name: Deploy preview docker image for windows
if: matrix.os == 'windows-latest'
run: |
Get-ChildItem ./src/OrchardCore.Cms.Web/App_Data -Recurse | Remove-Item -Recurse -Confirm:$false
Get-ChildItem ./src/OrchardCore.Cms.Web/App_Data_Tests -Recurse | Remove-Item -Recurse -Confirm:$false
$output = [System.IO.Path]::GetFullPath("./.build/release")
dotnet publish -c Release --property:PublishDir=$output --no-build --framework net7.0
docker build -f Dockerfile-CI -t orchardproject/orchardcore-cms-windows:dev .
dotnet publish -c Release --property:PublishDir=$output --no-build --framework net8.0
docker build -f Dockerfile-CI --platform=windows/amd64 -t orchardproject/orchardcore-cms-windows:dev .
echo "${{ secrets.DOCKERHUB_PASSWORD }}" | docker login -u="${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin
docker push orchardproject/orchardcore-cms-windows:dev
16 changes: 9 additions & 7 deletions .github/workflows/release_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,15 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: "15"
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: Set build number
if: matrix.os == 'ubuntu-latest'
run: echo "BuildNumber=$(( $GITHUB_RUN_NUMBER + 15471 ))" >> $GITHUB_ENV
- name: Build
run: |
dotnet build -c Release -f net7.0 -p:Version=${{ steps.get_version.outputs.VERSION }}
dotnet build -c Release -f net6.0 -p:Version=${{ steps.get_version.outputs.VERSION }}
dotnet build -c Release -f net8.0 -p:Version=${{ steps.get_version.outputs.VERSION }}
- name: Unit Tests
run: |
dotnet test -c Release --no-build ./test/OrchardCore.Tests/OrchardCore.Tests.csproj
Expand All @@ -61,7 +63,7 @@ jobs:
if: matrix.os == 'ubuntu-latest'
run: |
dotnet pack -c Release --no-build -p:Version=${{ steps.get_version.outputs.VERSION }} -p:TreatWarningsAsErrors=false
dotnet nuget push './src/**/*.nupkg' -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
dotnet nuget push './src/**/*.nupkg' -t 600 -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
- name: Login to DockerHub
if: matrix.os == 'ubuntu-latest'
uses: docker/login-action@v1
Expand All @@ -75,8 +77,8 @@ jobs:
Get-ChildItem ./src/OrchardCore.Cms.Web/App_Data -Recurse | Remove-Item -Recurse -Confirm:$false
Get-ChildItem ./src/OrchardCore.Cms.Web/App_Data_Tests -Recurse | Remove-Item -Recurse -Confirm:$false
$output = [System.IO.Path]::GetFullPath("./.build/release")
dotnet publish -c Release --property:PublishDir=$output --no-build --framework net7.0
docker build -f Dockerfile-CI -t orchardproject/orchardcore-cms-linux:latest -t orchardproject/orchardcore-cms-linux:${{ steps.get_version.outputs.VERSION }} .
dotnet publish -c Release --property:PublishDir=$output --no-build --framework net8.0
docker build -f Dockerfile-CI --platform=linux/amd64 -t orchardproject/orchardcore-cms-linux:latest -t orchardproject/orchardcore-cms-linux:${{ steps.get_version.outputs.VERSION }} .
docker push orchardproject/orchardcore-cms-linux:latest
docker push "orchardproject/orchardcore-cms-linux:${{ steps.get_version.outputs.VERSION }}"
- name: Deploy preview docker image for windows
Expand All @@ -85,8 +87,8 @@ jobs:
Get-ChildItem ./src/OrchardCore.Cms.Web/App_Data -Recurse | Remove-Item -Recurse -Confirm:$false
Get-ChildItem ./src/OrchardCore.Cms.Web/App_Data_Tests -Recurse | Remove-Item -Recurse -Confirm:$false
$output = [System.IO.Path]::GetFullPath("./.build/release")
dotnet publish -c Release --property:PublishDir=$output --no-build --framework net7.0
docker build -f Dockerfile-CI -t orchardproject/orchardcore-cms-windows:latest -t orchardproject/orchardcore-cms-windows:${{ steps.get_version.outputs.VERSION }} .
dotnet publish -c Release --property:PublishDir=$output --no-build --framework net8.0
docker build -f Dockerfile-CI --platform=windows/amd64 -t orchardproject/orchardcore-cms-windows:latest -t orchardproject/orchardcore-cms-windows:${{ steps.get_version.outputs.VERSION }} .
echo "${{ secrets.DOCKERHUB_PASSWORD }}" | docker login -u="${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin
docker push orchardproject/orchardcore-cms-windows:latest
docker push "orchardproject/orchardcore-cms-windows:${{ steps.get_version.outputs.VERSION }}"
6 changes: 5 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
# Required
version: 2

build:
os: ubuntu-22.04
tools:
python: "3.11"

# Build documentation in the docs/ directory with Sphinx
#sphinx:
# configuration: docs/conf.py
Expand All @@ -17,6 +22,5 @@ formats: all

# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.7
install:
- requirements: src/docs/requirements.txt
Loading

0 comments on commit 5aeeb98

Please sign in to comment.