From 05dcf94a3577914d9e74144881b7c50ab59cfaac Mon Sep 17 00:00:00 2001 From: Andras Csanyi Date: Sat, 27 Apr 2024 14:57:47 +0200 Subject: [PATCH] Moving to new repo --- .github/dependabot.yml | 14 +--- .github/workflows/doc_feature_branch.yaml | 45 ------------ .github/workflows/doc_main_branch.yaml | 61 ----------------- .github/workflows/feature.yaml | 64 +---------------- .github/workflows/release.yaml | 68 +------------------ EG.Common.sln => Common.sln | 0 ....sln.DotSettings => Common.sln.DotSettings | 0 ...ttings.user => Common.sln.DotSettings.user | 0 8 files changed, 7 insertions(+), 245 deletions(-) delete mode 100644 .github/workflows/doc_feature_branch.yaml delete mode 100644 .github/workflows/doc_main_branch.yaml rename EG.Common.sln => Common.sln (100%) rename EG.Common.sln.DotSettings => Common.sln.DotSettings (100%) rename EG.Common.sln.DotSettings.user => Common.sln.DotSettings.user (100%) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index a27e81d..22cc19e 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -6,18 +6,6 @@ version: 2 updates: - package-ecosystem: "nuget" - directory: "/src/dotnet/BusinessLogic" - schedule: - interval: "daily" - - package-ecosystem: "nuget" - directory: "/src/dotnet/Infrastructure.Graphql" - schedule: - interval: "daily" - - package-ecosystem: "nuget" - directory: "/src/dotnet/Infrastructure.Graphql.Host" - schedule: - interval: "daily" - - package-ecosystem: "nuget" - directory: "/src/dotnet/Tools" + directory: / schedule: interval: "daily" diff --git a/.github/workflows/doc_feature_branch.yaml b/.github/workflows/doc_feature_branch.yaml deleted file mode 100644 index aca37ec..0000000 --- a/.github/workflows/doc_feature_branch.yaml +++ /dev/null @@ -1,45 +0,0 @@ -name: Documentation - Feature -run-name: Documentation - Feature - -on: - pull_request: - branches: - - main - paths: - - 'Docs/**' - -jobs: - - debug: - name: Debug - runs-on: ubuntu-latest - steps: - - run: | - echo "=============" - echo "=== Debug ===" - echo "=============" - echo "github ref: " ${{ vars.GITHUB_REF }} - echo "dotnet version: " ${{ vars.DOTNET_VERSION }} - echo "event name: " ${{ github.event_name }} - - main_branch: - name: Feature Branch Build - runs-on: ubuntu-latest - needs: debug -# environment: -# name: github-pages -# url: ${{ steps.deployment.outputs.page_url }} -# permissions: -# contents: write -# issues: write -# pull-requests: write -# pages: write -# id-token: write - - steps: - - uses: actions/checkout@v4 - - - run: dotnet tool update -g docfx - - - run: docfx Docs/docfx.json --output Docs/_site - diff --git a/.github/workflows/doc_main_branch.yaml b/.github/workflows/doc_main_branch.yaml deleted file mode 100644 index b9c57bd..0000000 --- a/.github/workflows/doc_main_branch.yaml +++ /dev/null @@ -1,61 +0,0 @@ -name: Documentation - Main -run-name: Documentation - Main - -on: - push: - branches: - - main - paths: - - 'Docs/**' - -jobs: - - debug: - name: Debug - runs-on: ubuntu-latest - steps: - - run: | - echo "=============" - echo "=== Debug ===" - echo "=============" - echo "github ref: " ${{ vars.GITHUB_REF }} - echo "dotnet version: " ${{ vars.DOTNET_VERSION }} - echo "event name: " ${{ github.event_name }} - - main_branch: - name: Main Branch Build - runs-on: ubuntu-latest - needs: debug - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - permissions: - contents: write - issues: write - pull-requests: write - pages: write - id-token: write - - steps: - - uses: actions/checkout@v4 - - - run: dotnet tool update -g docfx - - - run: docfx Docs/docfx.json --output Docs/_site - - - name: Setup pages - uses: actions/configure-pages@v3 - - - name: Upload artifact - uses: actions/upload-pages-artifact@v2 - env: - GITHUB_TOKEN: ${{ secrets.TOKEN_FOR_SEMANTIC_RELEASE }} - with: - path: 'Docs/_site' - - - name: Deploy to Github Pages - env: - GITHUB_TOKEN: ${{ secrets.TOKEN_FOR_SEMANTIC_RELEASE }} - id: deployment - uses: actions/deploy-pages@v2 - \ No newline at end of file diff --git a/.github/workflows/feature.yaml b/.github/workflows/feature.yaml index b82624c..0a0ee55 100644 --- a/.github/workflows/feature.yaml +++ b/.github/workflows/feature.yaml @@ -35,70 +35,12 @@ jobs: - name: Restore run: | - dotnet restore src/EG.Common/EG.Common.sln + dotnet restore Common.sln - name: Build run: | - dotnet build --configuration Debug src/EG.Common/EG.Common.sln + dotnet build --configuration Debug Common.sln - name: Test run: | - dotnet test --no-restore --verbosity normal src/EG.Common/EG.Common.sln - - backend: - name: EG.Backend - runs-on: ubuntu-latest - needs: debug - - steps: - - uses: actions/checkout@v3 - - - name: Setting up Dotnet with ${{ vars.DOTNET_VERSION }} version - uses: actions/setup-dotnet@v3 - with: - dotnet-version: ${{ vars.DOTNET_VERSION }} - - - name: EG Nuget repo - run: | - dotnet nuget add source --username Andras-Csanyi --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/EncyclopediaGalactica/index.json" - - - name: Restore - run: | - dotnet restore src/EG.Backend/EG.Backend.sln - - - name: Build - run: | - dotnet build --configuration Debug src/EG.Backend/EG.Backend.sln - - - name: Test - run: | - dotnet test --no-restore --verbosity normal src/EG.Backend/EG.Backend.sln - - frontend: - name: EG.Frontend - runs-on: ubuntu-latest - needs: debug - - steps: - - uses: actions/checkout@v3 - - - name: Setting up Dotnet with ${{ vars.DOTNET_VERSION }} version - uses: actions/setup-dotnet@v3 - with: - dotnet-version: ${{ vars.DOTNET_VERSION }} - - - name: EG Nuget repo - run: | - dotnet nuget add source --username Andras-Csanyi --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/EncyclopediaGalactica/index.json" - - - name: Restore - run: | - dotnet restore src/EG.FrontEnd/EG.FrontEnd.sln - - - name: Build - run: | - dotnet build --configuration Debug src/EG.FrontEnd/EG.FrontEnd.sln - - - name: Test - run: | - dotnet test --no-restore --verbosity normal src/EG.FrontEnd/EG.FrontEnd.sln + dotnet test --no-restore --verbosity normal Common.sln diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7c5d814..74b6f31 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -35,81 +35,20 @@ jobs: - name: Restore run: | - dotnet restore src/EG.Common/EG.Common.sln + dotnet restore Common.sln - name: Build run: | - dotnet build --configuration Release src/EG.Common/EG.Common.sln + dotnet build --configuration Release Common.sln - name: Test run: | - dotnet test --no-restore --verbosity normal src/EG.Common/EG.Common.sln - - backend: - name: EG.Backend - runs-on: ubuntu-latest - needs: debug - - steps: - - uses: actions/checkout@v3 - - - name: Setting up Dotnet with ${{ vars.DOTNET_VERSION }} version - uses: actions/setup-dotnet@v3 - with: - dotnet-version: ${{ vars.DOTNET_VERSION }} - - - name: EG Nuget repo - run: | - dotnet nuget add source --username Andras-Csanyi --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/EncyclopediaGalactica/index.json" - - - name: Restore - run: | - dotnet restore src/EG.Backend/EG.Backend.sln - - - name: Build - run: | - dotnet build --configuration Release src/EG.Backend/EG.Backend.sln + dotnet test --no-restore --verbosity normal Common.sln - - name: Test - run: | - dotnet test --no-restore --verbosity normal src/EG.Backend/EG.Backend.sln - - frontend: - name: EG.Frontend - runs-on: ubuntu-latest - needs: debug - - steps: - - uses: actions/checkout@v3 - - - name: Setting up Dotnet with ${{ vars.DOTNET_VERSION }} version - uses: actions/setup-dotnet@v3 - with: - dotnet-version: ${{ vars.DOTNET_VERSION }} - - - name: EG Nuget repo - run: | - dotnet nuget add source --username Andras-Csanyi --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/EncyclopediaGalactica/index.json" - - - name: Restore - run: | - dotnet restore src/EG.FrontEnd/EG.FrontEnd.sln - - - name: Build - run: | - dotnet build --configuration Release src/EG.FrontEnd/EG.FrontEnd.sln - - - name: Test - run: | - dotnet test --no-restore --verbosity normal src/EG.FrontEnd/EG.FrontEnd.sln - semantic_versioning: name: Semantic Versioning runs-on: ubuntu-latest needs: - - debug - - backend - - frontend - commons environment: name: github-pages @@ -187,4 +126,3 @@ jobs: run: | dotnet nuget add source --username Andras-Csanyi --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/EncyclopediaGalactica/index.json" dotnet nuget push "/home/runner/work/EncyclopediaGalactica/EncyclopediaGalactica/src/EG.Common/BusinessLogic.Contracts/bin/Release/EncyclopediaGalactica.BusinessLogic.Contracts.${{ env.EGVERSION }}.nupkg" --source "github" --api-key ${{ secrets.TOKEN_PUBLISH_NUGET }} --skip-duplicate - \ No newline at end of file diff --git a/EG.Common.sln b/Common.sln similarity index 100% rename from EG.Common.sln rename to Common.sln diff --git a/EG.Common.sln.DotSettings b/Common.sln.DotSettings similarity index 100% rename from EG.Common.sln.DotSettings rename to Common.sln.DotSettings diff --git a/EG.Common.sln.DotSettings.user b/Common.sln.DotSettings.user similarity index 100% rename from EG.Common.sln.DotSettings.user rename to Common.sln.DotSettings.user