Skip to content

Commit

Permalink
Moving to new repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Andras-Csanyi committed Apr 27, 2024
0 parents commit fd59edb
Show file tree
Hide file tree
Showing 127 changed files with 3,835 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[bumpversion]
current_version = 0.0.0
commit = True
message = Update version {current_version} -> {new_version}

[bumpversion:file:README.md]
search = {current_version}
replace = {new_version}

[bumpversion:file:version.txt]
search = {current_version}
replace = {new_version}
23 changes: 23 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

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"
schedule:
interval: "daily"
45 changes: 45 additions & 0 deletions .github/workflows/doc_feature_branch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
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

61 changes: 61 additions & 0 deletions .github/workflows/doc_main_branch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
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

104 changes: 104 additions & 0 deletions .github/workflows/feature.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
name: Feature
run-name: Feature

on:
pull_request:
branches:
- main

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 }}
commons:
name: EG.Commons
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: Restore
run: |
dotnet restore src/EG.Common/EG.Common.sln
- name: Build
run: |
dotnet build --configuration Debug src/EG.Common/EG.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
Loading

0 comments on commit fd59edb

Please sign in to comment.