Skip to content

Commit

Permalink
Knowledge base (#107)
Browse files Browse the repository at this point in the history
Added knowledge base section.
Add mocking limitation article.
Added workflow for publishing KB articles for support heroes portal.
  • Loading branch information
tsvetko authored Dec 7, 2023
1 parent 68d0f7e commit b1ce03e
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 1 deletion.
45 changes: 45 additions & 0 deletions .github/workflows/publish-kb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Publish Knowledge Base Article
on:
repository_dispatch:
types: [publish-kb]

run-name: Publish Knowledge Base Article ${{ github.event.client_payload.name }} ${{ github.event.client_payload.id }}

permissions:
contents: write
pull-requests: write

concurrency:
group: '${{ github.workflow }} ${{ github.event.client_payload.id }}'
cancel-in-progress: true

jobs:
publish_kb:
runs-on: ubuntu-latest
steps:
- name: configure git
run: |
git config --global user.email "[email protected]"
git config --global user.name "KB Bot"
- name: Checkout
uses: actions/checkout@v3

- name: Create branch
run: |
git checkout -b "new-kb-$name-$id"
cd $folder
echo "$content" > "$name.md"
git add "$name.md"
git commit -m "Added new kb article $name"
git push -u origin "new-kb-$name-$id"
env:
name: ${{ github.event.client_payload.name }}
content: ${{ github.event.client_payload.content }}
folder: ${{ github.event.client_payload.folder }}
id: ${{ github.event.client_payload.id }}

- name: Create pull request
run: gh pr create --fill
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 4 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ navigation:
position: 1
integration/code-coverage:
title: Code Coverage
position: 4
position: 4
knowledge-base:
title: Knowledge Base
position: 8


## The application virtual path
Expand Down
26 changes: 26 additions & 0 deletions knowledge-base/mock-limitations.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: Mock Limitations
page_title: Mock Limitations | JustMock Documentation
description: Types that cannot be mocked with JustMock
slug: justmock/knoledgebase/limitations
tags: knowledgebase, limitations
published: True
position: 0
---

# Mock Limitations

The mocking framework strongly relies on some system types, while others are integral part of the .NET runtime, so following types cannot be mocked by the JustMock profiler:
- System.Reflection.MemberInfo
- System.Reflection.MethodBase
- System.Reflection.MethodInfo
- System.Reflection.ConstructorInfo
- System.Reflection.FieldInfo
- System.Reflection.PropertyInfo
- System.Reflection.EventInfo
- System.WeakReference
- System.WeakReference<T>
- System.IntPtr
- System.Runtime.CompilerServices.CastHelpers
- System.CannotUnloadAppDomainException
- all types in **System.Globalization** namespace

0 comments on commit b1ce03e

Please sign in to comment.