Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Public Sample: RecordingBot from @LM-Development/aks-sample #749

Open
wants to merge 306 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
306 commits
Select commit Hold shift + click to select a range
88f683c
Fix bot service initialization
rsubrama83 Dec 11, 2023
15ea9c2
Fix build errors
rsubrama83 Dec 11, 2023
dc5497a
Update to a running local debug version
1fabi0 Dec 13, 2023
173a655
Fix Testing project
rsubrama83 Dec 14, 2023
6524780
Remove cert-manager from dependencies
1fabi0 Jan 8, 2024
b46e8b8
Add cert-manager installation script
1fabi0 Jan 8, 2024
a0df664
Move installation of Cluster issuer to cert-manager installation
1fabi0 Jan 8, 2024
d913839
Remove cert-manager settings from values.yaml
1fabi0 Jan 8, 2024
176d4d9
Update nuget packages
rsubrama83 Jan 29, 2024
0f76a9a
Fix namespacing with Release namespace
1fabi0 Dec 18, 2023
2e869d1
Update helm templates to use one release namespace with overidability
1fabi0 Dec 18, 2023
5604177
Update chart Version
1fabi0 Dec 18, 2023
4240917
Remove result yaml from debugging
1fabi0 Jan 8, 2024
acdc08b
Update Chart.yaml
rsubrama83 Feb 2, 2024
8fb23d6
add main.yml to build and push testrelease image
Dec 11, 2023
20472a2
added workingdirectory to main.yml
Dec 11, 2023
0f3aa86
deployment changes
Dec 19, 2023
1be1aef
raise version
Dec 19, 2023
614db45
Remove C#12 collection expression
1fabi0 Jan 30, 2024
e35f337
Update appVersion
1fabi0 Jan 30, 2024
70c2af6
Remove Cache from git
1fabi0 Jan 30, 2024
04f40da
Remove C#12 Collection Expression
1fabi0 Jan 30, 2024
d0247b4
Add helm allow Snippet Annotations
1fabi0 Jan 31, 2024
ae68153
Fix start option name of nginx ingress controller
1fabi0 Jan 31, 2024
a05c1a6
Fix configmap namespace
1fabi0 Jan 31, 2024
0d631af
Fix chart errors
1fabi0 Jan 31, 2024
965e007
Update Chart.yaml
rsubrama83 Feb 6, 2024
e74b3c5
add main.yml to build and push testrelease image
Dec 11, 2023
75be59f
added workingdirectory to main.yml
Dec 11, 2023
a1bffc7
deployment changes
Dec 19, 2023
40d09f9
Adjust helm chart to new kubernetes version
1fabi0 Dec 6, 2023
743bcfa
Update Samples/PublicSamples/RecordingBot/deploy/teams-recording-bot/…
1fabi0 Dec 11, 2023
300df72
Update Chart Version
1fabi0 Dec 11, 2023
6961f50
Remove target nodepool
1fabi0 Dec 11, 2023
0e6d3db
raise version
Dec 19, 2023
704514c
Fix namespacing with Release namespace
1fabi0 Dec 18, 2023
63ee354
Update helm templates to use one release namespace with overidability
1fabi0 Dec 18, 2023
9d7758e
Update chart Version
1fabi0 Dec 18, 2023
930dfee
Remove result yaml from debugging
1fabi0 Jan 8, 2024
877d124
33607 WebHost von Owin auf Kestrel umziehen
rsubrama83 Dec 5, 2023
ba3ed31
Remove app.config
rsubrama83 Dec 5, 2023
8a2230a
Update Chart Version
rsubrama83 Dec 5, 2023
f3f6e07
Migrieren von der ASP.NET-Web-API zu ASP.NET Core
rsubrama83 Dec 5, 2023
63bb8fa
Migrate confidential client applications from ADAL.NET to MSAL.NET
rsubrama83 Dec 5, 2023
a4c2425
Resolve pr comments
rsubrama83 Dec 7, 2023
927ac53
Cleanup
rsubrama83 Dec 7, 2023
529b90f
Fix null refernez
rsubrama83 Dec 7, 2023
0820b1e
Fix bot service initialization
rsubrama83 Dec 11, 2023
817499f
Fix build errors
rsubrama83 Dec 11, 2023
b5c2164
Update to a running local debug version
1fabi0 Dec 13, 2023
9436803
Fix Testing project
rsubrama83 Dec 14, 2023
f9a8c7a
Remove cert-manager from dependencies
1fabi0 Jan 8, 2024
0957776
Add cert-manager installation script
1fabi0 Jan 8, 2024
51aeddc
Move installation of Cluster issuer to cert-manager installation
1fabi0 Jan 8, 2024
268af86
Remove cert-manager settings from values.yaml
1fabi0 Jan 8, 2024
2701af1
Remove C#12 collection expression
1fabi0 Jan 30, 2024
c64cb3f
Update appVersion
1fabi0 Jan 30, 2024
d7770c8
Remove Cache from git
1fabi0 Jan 30, 2024
50daeca
Remove C#12 Collection Expression
1fabi0 Jan 30, 2024
bdc589c
Add helm allow Snippet Annotations
1fabi0 Jan 31, 2024
5fd27c4
Fix Authorization Errors
1fabi0 Feb 28, 2024
406f6fb
Fix start option name of nginx ingress controller
1fabi0 Jan 31, 2024
e6a218f
Fix configmap namespace
1fabi0 Jan 31, 2024
6da7319
Fix chart errors
1fabi0 Jan 31, 2024
04dbe1e
Merge branch 'main' into rebase/testrelease
1fabi0 Mar 5, 2024
7db0e97
Merge pull request #30 from LM-Development/rebase/testrelease
InDieTasten Mar 6, 2024
3300b03
Remove namespaceOverride of ingress-nginx config
1fabi0 Mar 6, 2024
0b433cc
Create ingressClass per deployment for multiple instances running in …
1fabi0 Mar 6, 2024
ba0b278
fix cluster-issuer typo
1fabi0 Mar 6, 2024
ac80622
Remove Cluster Issuer from cert-manager installation and add namespac…
1fabi0 Mar 7, 2024
8337676
Upgrade the Microsoft Graph dependencies
Mar 7, 2024
4af40cf
Remove Event Grid specific environment variables from env-template
Mar 7, 2024
fecf5e4
Update values settings to allow setup two applications in one cluster
1fabi0 Mar 7, 2024
5945a65
Update external LoadBalancer Service to allow multiple ingress-nginx …
1fabi0 Mar 7, 2024
8e2cf93
Fix missing space character
1fabi0 Mar 7, 2024
4028220
Merge pull request #36 from LM-Development/dev/fde/remove-environment…
InDieTasten Mar 7, 2024
8447831
Fix lint errors
1fabi0 Mar 7, 2024
661ec8b
Merge branch 'main' into fka/nginx-standard-namespace
1fabi0 Mar 7, 2024
793905e
Merge pull request #34 from LM-Development/fka/nginx-standard-namespace
1fabi0 Mar 7, 2024
1412b9a
Remove app.config from Test Project
fde-lmag Mar 7, 2024
bf8bc65
Upgrade Tests to NUnit 4
fde-lmag Mar 7, 2024
cb4bd2f
Add MIT license for changes from LM
InDieTasten Mar 8, 2024
92b437b
Remove CoC and SECURITY.md
InDieTasten Mar 8, 2024
eb13249
Merge branch 'main' into dev/update-license
InDieTasten Mar 8, 2024
4cc7213
Add link from deprecated sample to public sample
InDieTasten Mar 8, 2024
93741aa
Merge branch 'microsoftgraph:master' into main
InDieTasten Mar 8, 2024
b451795
Add CodeQL workflow
InDieTasten Mar 8, 2024
f11f769
Replace autobuild with discrete build steps for CodeQL
InDieTasten Mar 8, 2024
38528bb
Merge branch 'main' into dev/add-link-from-deprecated-to-public-sample
InDieTasten Mar 8, 2024
5b9c5ef
Merge branch 'main' into dev/remove-coc-sec-md
InDieTasten Mar 8, 2024
65a22ec
Merge branch 'main' into dev/update-license
InDieTasten Mar 8, 2024
1f85d74
Remove ghost docs from RecordingBot.Console project
InDieTasten Mar 8, 2024
bfd8a52
Remove GhostDocs from RecordingBot.Model project
InDieTasten Mar 8, 2024
1186795
Remove GhostDocs from RecordingBot.Services project
InDieTasten Mar 8, 2024
9d947c3
Initial draft for new README.md
InDieTasten Mar 8, 2024
320b990
Fix build error
InDieTasten Mar 8, 2024
472506c
Fix inconsistent existance of utf-8 BOM
InDieTasten Mar 8, 2024
b6751b7
Bump versions
InDieTasten Mar 8, 2024
0ab5409
Merge remote-tracking branch 'origin/main' into fde/fix-msgraph-depen…
InDieTasten Mar 8, 2024
7b5c6d9
Bump versions
InDieTasten Mar 8, 2024
64217b1
Merge pull request #35 from LM-Development/fde/fix-msgraph-dependencies
InDieTasten Mar 8, 2024
65dba9e
Merge remote-tracking branch 'origin/main' into dev/remove-ghost-docs
InDieTasten Mar 8, 2024
6b485d3
Bump versions
InDieTasten Mar 8, 2024
bdfc5f3
Merge branch 'main' into dev/code-ql
InDieTasten Mar 8, 2024
7fa145d
Merge branch 'main' into dev/add-link-from-deprecated-to-public-sample
InDieTasten Mar 8, 2024
b3341d2
Add useful info about display name when joining call
InDieTasten Mar 8, 2024
1f60343
Rename stereo parameter
InDieTasten Mar 8, 2024
e9b4846
Pass the Complete Certificate into MediaPlatformInstanceSettings to a…
fde-lmag Mar 8, 2024
9ad00a0
Merge pull request #41 from LM-Development/dev/remove-ghost-docs
InDieTasten Mar 8, 2024
3a1b311
Merge branch 'main' into dev/add-link-from-deprecated-to-public-sample
fde-lmag Mar 8, 2024
fb9801a
Merge branch 'main' into dev/new-readme
fde-lmag Mar 8, 2024
0eeb1ae
Merge branch 'main' into dev/update-license
fde-lmag Mar 8, 2024
5545b20
Fix link to issue tracker
InDieTasten Mar 8, 2024
daa4239
Merge pull request #37 from LM-Development/dev/update-license
InDieTasten Mar 8, 2024
1fd8f63
Merge branch 'main' into dev/remove-coc-sec-md
InDieTasten Mar 8, 2024
6814027
Merge branch 'main' into dev/add-link-from-deprecated-to-public-sample
InDieTasten Mar 8, 2024
19b0176
Merge pull request #38 from LM-Development/dev/remove-coc-sec-md
InDieTasten Mar 8, 2024
66f37dc
Merge branch 'main' into dev/add-link-from-deprecated-to-public-sample
InDieTasten Mar 8, 2024
5475653
Merge branch 'main' into dev/new-readme
InDieTasten Mar 8, 2024
104f8ac
Merge pull request #42 from LM-Development/dev/new-readme
InDieTasten Mar 8, 2024
1244f59
Merge branch 'main' into dev/add-link-from-deprecated-to-public-sample
InDieTasten Mar 8, 2024
9f22015
Merge pull request #39 from LM-Development/dev/add-link-from-deprecat…
InDieTasten Mar 8, 2024
0c78293
Merge pull request #40 from LM-Development/dev/code-ql
InDieTasten Mar 8, 2024
e19271d
Merge branch 'main' into dev/fde/certificate-passthrtough
InDieTasten Mar 8, 2024
aec6eb7
Update AppVersion
fde-lmag Mar 8, 2024
4332ca3
Rewrite recording bot policy setup doc
fde-lmag Mar 8, 2024
f53d639
Merge pull request #44 from LM-Development/dev/fde/certificate-passth…
InDieTasten Mar 8, 2024
6c26c84
Clean up Unit Tests
fde-lmag Mar 11, 2024
84120bd
Remove AppHost derived tests
fde-lmag Mar 11, 2024
d8149d6
Fix Analyzer suggestions
fde-lmag Mar 11, 2024
1bd9d51
Fix merge error
fde-lmag Mar 11, 2024
2dfcf87
Update policy.md
fde-lmag Mar 11, 2024
6f348ea
Update policy.md
fde-lmag Mar 11, 2024
d010c24
Fix typo
fde-lmag Mar 11, 2024
d04302b
Simplified LINQ queries and changed local variable names
fde-lmag Mar 11, 2024
956682e
Removed comment that seemed out of place
fde-lmag Mar 11, 2024
d39e0f1
Fix recording bot policy doc markdown being stripped of trailing whit…
fde-lmag Mar 11, 2024
f791e35
Fix referencing command parameters for explanations differently on di…
fde-lmag Mar 11, 2024
9384c6d
Update appVersion
fde-lmag Mar 11, 2024
2fed090
Remove the "Grant-" command from the recording bot policy docs
fde-lmag Mar 11, 2024
a86640c
Merge branch 'main' of https://github.com/LM-Development/aks-sample i…
fde-lmag Mar 11, 2024
37bbb1f
Update appVersion
fde-lmag Mar 11, 2024
e5cb779
Merge branch 'main' of https://github.com/LM-Development/aks-sample i…
fde-lmag Mar 11, 2024
be749a1
Merge branch 'dev/fde/update-docs-setup-policy' of https://github.com…
fde-lmag Mar 11, 2024
114dfd5
Use LINQ to distinctly filter Serializer Assemblies
fde-lmag Mar 11, 2024
768c194
Update appVersion
fde-lmag Mar 11, 2024
9c549c9
Merge pull request #45 from LM-Development/dev/fde/update-docs-setup-…
fde-lmag Mar 11, 2024
2136b15
Merge branch 'main' of https://github.com/LM-Development/aks-sample i…
fde-lmag Mar 11, 2024
50f36bb
Merge branch 'main' of https://github.com/LM-Development/aks-sample i…
fde-lmag Mar 11, 2024
eaf39e1
Remove invisible char (maybe)
fde-lmag Mar 11, 2024
692bf44
Merge pull request #43 from LM-Development/dev/fde/upgrade-nunit
fde-lmag Mar 11, 2024
2ebac1f
Merge branch 'main' of https://github.com/LM-Development/aks-sample i…
fde-lmag Mar 11, 2024
3df1b9f
Update appVersion
fde-lmag Mar 11, 2024
568060e
Merge pull request #46 from LM-Development/dev/fde/refactor-serializa…
fde-lmag Mar 11, 2024
f156637
Try move github actions to subfolders
1fabi0 Mar 11, 2024
0652a0d
Move workflows back from subfolders and add master branch
1fabi0 Mar 11, 2024
af884f2
Merge branch 'main' into dev/fka/update-workflows
1fabi0 Mar 11, 2024
72b1663
Add Forward Graph Logger to ILogger
1fabi0 Mar 11, 2024
66b773c
Set ServiceProvider own variable name instead of using discard variab…
1fabi0 Mar 11, 2024
1b6f240
Merge pull request #47 from LM-Development/dev/fka/update-workflows
1fabi0 Mar 11, 2024
5d8753f
Merge branch 'main' into dev/fka/forward-graph-logger
InDieTasten Mar 12, 2024
20d40f6
Merge pull request #48 from LM-Development/dev/fka/forward-graph-logger
InDieTasten Mar 12, 2024
476e231
Change docker login username
1fabi0 Mar 12, 2024
ca111c3
Remove .github folder from subfolder
1fabi0 Mar 12, 2024
6c123d8
Merge pull request #49 from LM-Development/dev/fka/fix-docker-release…
InDieTasten Mar 12, 2024
58b555e
Upgrade to .NET 8
fde-lmag Mar 13, 2024
8dbe5b8
Change to windows specific image as .net 8 images are linux based
fde-lmag Mar 13, 2024
87ef022
Optimize http request to Uri conversion
fde-lmag Mar 14, 2024
cee67e6
Rewrite call handler tests
fde-lmag Mar 14, 2024
3d85165
Remove media stream tests as they seem to only test helper classes of…
fde-lmag Mar 14, 2024
b99d9c2
Remove audio sample data test as it does not contain any actual tests
fde-lmag Mar 14, 2024
9be69ea
Refactor CaptureEvent class
fde-lmag Mar 14, 2024
4d01cad
Rename ParticipantData and ParticipantExtension to SerializablePartic…
fde-lmag Mar 14, 2024
51f91c4
Refactor code (fix name violations, use collection initializers, use …
fde-lmag Mar 14, 2024
34b2b88
Remove LRU Cache
fde-lmag Mar 14, 2024
e09486f
Refactor code for readability and performance
fde-lmag Mar 14, 2024
046323f
Fix usage of token source before initialization
fde-lmag Mar 20, 2024
d747607
Fix Event Grid Publisher doing work without a topic key present
Mar 25, 2024
1486306
Update appVersion (major)
fde-lmag Mar 25, 2024
19f2724
suppress warnings on unused members of iparticipant implementation
fde-lmag Mar 25, 2024
8992b2a
Remove License Header from Assembly Infos
1fabi0 Mar 19, 2024
94b4821
Merge pull request #53 from LM-Development/dev/fde/optimizations-net8
fde-lmag Mar 25, 2024
cc6b227
Fix Information exposure through exception error
1fabi0 Mar 27, 2024
90a0834
Update Chart Version
1fabi0 Mar 27, 2024
6de223a
Update Catch Service Exception in Join Call
1fabi0 Mar 27, 2024
cad315c
Merge pull request #54 from LM-Development/dev/fka/fix-information-ex…
1fabi0 Mar 27, 2024
4351060
Add High Level overview explanation
1fabi0 Apr 9, 2024
1f86e6e
Fix some difficult formulations
1fabi0 Apr 9, 2024
a17e6c8
Add additional Headline to distinct the SDK from the Overview
1fabi0 Apr 9, 2024
53364de
Add explanation about Graph Calling Permission
1fabi0 Apr 10, 2024
26ab561
Update explanation
1fabi0 Apr 10, 2024
b2ad551
Fix typo
1fabi0 Apr 10, 2024
4a697dd
Add explenation about Compliance Recording Policies
1fabi0 Apr 10, 2024
d7eecd7
Add Compliance recording policies explanation to readme
1fabi0 Apr 10, 2024
fcb8928
Enhance Recording Policy how to guide with assigning recording policies
1fabi0 Apr 10, 2024
f00ba6b
Change title
1fabi0 Apr 10, 2024
9497e3f
Upgrade overview Documentation
1fabi0 Apr 15, 2024
6dec578
Improve high level overview
1fabi0 Apr 15, 2024
35c0d44
Improve Readme
1fabi0 Apr 15, 2024
d37956e
Improve permission documentation
1fabi0 Apr 15, 2024
03aabaa
Improve permission docs
1fabi0 Apr 15, 2024
5096792
Improve Name spelling
1fabi0 Apr 15, 2024
3fc25b4
Improve policy documentation
1fabi0 Apr 15, 2024
33f7f55
Add Deploy Tutorial Overview
1fabi0 Apr 15, 2024
1458af1
Update deploy tutorial overview
1fabi0 Apr 15, 2024
55d0132
Add AKS deployment tutorial
1fabi0 Apr 16, 2024
a258c0f
Finalise AKS deployment tutorial
1fabi0 Apr 17, 2024
573c3ce
Add line for whats next
1fabi0 Apr 17, 2024
16df402
Fix minor issues
1fabi0 Apr 17, 2024
54fd7e1
Add tutorial for deploy Azure container registry
1fabi0 Apr 17, 2024
a317bc8
Merge branch 'microsoftgraph:master' into main
InDieTasten Apr 18, 2024
aa2f609
Undo unnecessary change to deprecated sample
InDieTasten Apr 18, 2024
8d3b728
Merge pull request #56 from LM-Development/InDieTasten/undo-unnecessa…
InDieTasten Apr 18, 2024
50dbad7
Address comments from pull request
1fabi0 Apr 22, 2024
0bf2985
Fix typo
1fabi0 Apr 22, 2024
ad0c9e2
Address comments from review
1fabi0 Apr 22, 2024
90f08d0
Address comments from review
1fabi0 Apr 22, 2024
fed9a17
Address comments from review
1fabi0 Apr 22, 2024
4f8ca49
Address comments from review
1fabi0 Apr 22, 2024
7a977c3
Address comments from review
1fabi0 Apr 22, 2024
bc08c10
Address comments from review
1fabi0 Apr 22, 2024
b42cf35
Remove apostophizing and fix typo
1fabi0 Apr 22, 2024
92c4d85
Add clone and build tutorial step
1fabi0 Apr 22, 2024
9ec334c
Add App Registration and Bot Service Tutorial step
1fabi0 Apr 23, 2024
452bd19
Adjust tutorial goal
1fabi0 Apr 23, 2024
cce3cf2
Merge branch 'main' into docs/fka
1fabi0 Apr 23, 2024
b36020b
Replace the app registration id with a better placeholder guid
1fabi0 Apr 23, 2024
fdb5fe0
Replace IP Address Name with a better guid placeholder value
1fabi0 Apr 23, 2024
cd27c42
Add line breaks to markdown for readability
1fabi0 Apr 23, 2024
2105b53
Add helm deployment tutorial step
1fabi0 Apr 24, 2024
f57a819
Adjust wording
1fabi0 Apr 24, 2024
6cb9850
Fix apostrophizing and link issue page
1fabi0 Apr 24, 2024
b6a58ff
Fix typo
1fabi0 Apr 24, 2024
251b9c0
Add create and assign recording policy tutuorial step
1fabi0 Apr 24, 2024
367cce5
Add validation tutorial step
1fabi0 Apr 24, 2024
beb2724
Fix Note
1fabi0 Apr 24, 2024
1ed7295
Add line breaks for readabilty
1fabi0 Apr 24, 2024
bdbb099
Resolve Comments from review
1fabi0 May 6, 2024
c8bbd7f
Resolve comments from review
1fabi0 May 6, 2024
968f165
Resolve comments from review
1fabi0 May 6, 2024
49309ca
Resolve comments from review
1fabi0 May 6, 2024
483aa8c
Resolve comments from review
1fabi0 May 6, 2024
e0ba629
Resolve comments from review
1fabi0 May 6, 2024
0cea774
Fix pluralization
1fabi0 May 6, 2024
feea0b4
Simplify Azure quotas mentioning
1fabi0 May 6, 2024
3b1db6a
Merge pull request #55 from LM-Development/docs/fka
1fabi0 May 7, 2024
33271ee
Change windows nodepool to standard_d4_v3 vms
1fabi0 Jul 10, 2024
a6b182e
Merge pull request #65 from LM-Development/docs/fka-fix-61
1fabi0 Jul 10, 2024
5312b3c
Fix conflict in gitignore
1fabi0 Jul 17, 2024
52c0bb7
Merge pull request #67 from LM-Development/fka/fix-gitignore
1fabi0 Jul 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
149 changes: 149 additions & 0 deletions .github/workflows/publicrecordingbot_build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
name: Recording Bot Build And Test
run-name: Pull Request "${{github.event.pull_request.title}}" build and test

on:
pull_request:
branches:
- main
- master
paths:
- Samples/PublicSamples/RecordingBot/**

jobs:

check-recording-bot-changes:
runs-on: ubuntu-latest
outputs:
build: ${{ steps.changes.outputs.build }}
deploy: ${{ steps.changes.outputs.deploy }}
docs: ${{ steps.changes.outputs.docs }}
scripts: ${{ steps.changes.outputs.scripts }}
src: ${{ steps.changes.outputs.src }}
steps:
- uses: actions/checkout@v4
- shell: pwsh
id: changes
run: |
# Diff latest commit with latest main commit for Recording Bot
git fetch
git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} -- Samples/PublicSamples/RecordingBot/
$diff = git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} -- Samples/PublicSamples/RecordingBot/

# Check if a file has changed (added, modified, deleted)
$BuildDiff = $diff | Where-Object { $_ -match '^Samples/PublicSamples/RecordingBot/build/' }
$DeployDiff = $diff | Where-Object { $_ -match '^Samples/PublicSamples/RecordingBot/deploy/' }
$DocsDiff = $diff | Where-Object { $_ -match '^Samples/PublicSamples/RecordingBot/docs/' -or $_ -match '.md$' }
$ScriptsDiff = $diff | Where-Object { $_ -match '^Samples/PublicSamples/RecordingBot/scripts/' }
$SrcDiff = $diff | Where-Object { $_ -match '^Samples/PublicSamples/RecordingBot/src/' }

$HasBuildDiff = $BuildDiff.Length -gt 0
$HasDeployDiff = $DeployDiff.Length -gt 0
$HasDocsDiff = $DocsDiff.Length -gt 0
$HasScriptsDiff = $ScriptsDiff.Length -gt 0
$HasSrcDiff = $SrcDiff.Length -gt 0

# Set the outputs
echo "build=$HasBuildDiff" >> $env:GITHUB_OUTPUT
echo "deploy=$HasDeployDiff" >> $env:GITHUB_OUTPUT
echo "docs=$HasDocsDiff" >> $env:GITHUB_OUTPUT
echo "scripts=$HasScriptsDiff" >> $env:GITHUB_OUTPUT
echo "src=$HasSrcDiff" >> $env:GITHUB_OUTPUT

dotnet-build-and-test:
runs-on: windows-2022
needs: check-recording-bot-changes
if: needs.check-recording-bot-changes.outputs.src == 'True'

defaults:
run:
working-directory: Samples/PublicSamples/RecordingBot/src

steps:
- uses: actions/checkout@v4

- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: "8.0.x"

- name: Rename .env-template
run: |
Rename-Item "RecordingBot.Tests\.env-template" -NewName ".env"
Rename-Item "RecordingBot.Console\.env-template" -NewName ".env"

- name: Build project
run: dotnet build

- name: Test project
run: dotnet test

docker-build:
runs-on: windows-2022
needs: check-recording-bot-changes
if: needs.check-recording-bot-changes.outputs.build == 'True'

defaults:
run:
working-directory: Samples/PublicSamples/RecordingBot/

steps:
- uses: actions/checkout@v4

- name: Build Docker Image
shell: bash
run: docker build -f ./build/Dockerfile . -t "teams-recording-bot:${GITHUB_SHA}"

chart-build-and-test:
runs-on: ubuntu-latest
needs: check-recording-bot-changes
if: needs.check-recording-bot-changes.outputs.build == 'True' || needs.check-recording-bot-changes.outputs.deploy == 'True' || needs.check-recording-bot-changes.outputs.scripts == 'True' || needs.check-recording-bot-changes.outputs.src == 'True'

defaults:
run:
working-directory: Samples/PublicSamples/RecordingBot/deploy

steps:
- uses: actions/checkout@v4
- run: |
git fetch
git branch -a

- name: Lint Helm Chart
working-directory: Samples/PublicSamples/RecordingBot/deploy/teams-recording-bot
if: needs.check-recording-bot-changes.outputs.deploy == 'True'
run: helm lint

- name: Check App Version Change
if: needs.check-recording-bot-changes.outputs.build == 'True' || needs.check-recording-bot-changes.outputs.scripts == 'True' || needs.check-recording-bot-changes.outputs.src == 'True'
shell: bash
run: |
oldVersion=$(MSYS_NO_PATHCONV=1 git show remotes/origin/$GITHUB_BASE_REF:Samples/PublicSamples/RecordingBot/deploy/teams-recording-bot/Chart.yaml | sed -n "s/^appVersion: \([0-9\.]*\)$/\1/p")
echo "Previous app Version: $oldVersion"
[ -z "$oldVersion" ] && exit 1

newVersion=$(cat teams-recording-bot/Chart.yaml | sed -n "s/^appVersion: \([0-9\.]*\)$/\1/p")
echo "New app Version: $newVersion"
[ -z "$newVersion" ] && exit 1

echo "Check if app Version was updated"
[ "$newVersion" = "$oldVersion" ] && exit 1
newerVersion=$(echo -e "$oldVersion\n$newVersion" | sort -V | tail -1)
[ "$newerVersion" = "$newVersion" ] || exit 1
echo "Success app Version was updated!"

- name: Check Version Change
shell: bash
run: |
oldVersion=$(MSYS_NO_PATHCONV=1 git show remotes/origin/$GITHUB_BASE_REF:Samples/PublicSamples/RecordingBot/deploy/teams-recording-bot/Chart.yaml | sed -n "s/^version: \([0-9\.]*\)$/\1/p")
echo "Previous Version: $oldVersion"
[ -z "$oldVersion" ] && exit 1

newVersion=$(cat teams-recording-bot/Chart.yaml | sed -n "s/^version: \([0-9\.]*\)$/\1/p")
echo "New Version: $newVersion"
[ -z "$newVersion" ] && exit 1

echo "Check if Version was updated"
[ "$newVersion" = "$oldVersion" ] && exit 1
newerVersion=$(echo -e "$oldVersion\n$newVersion" | sort -V | tail -1)
[ "$newerVersion" = "$newVersion" ] || exit 1
echo "Success Version was updated!"
75 changes: 75 additions & 0 deletions .github/workflows/publicrecordingbot_codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: "Recording Bot CodeQL"

on:
push:
branches:
- main
- master
paths:
- Samples/PublicSamples/RecordingBot/**
pull_request:
branches:
- main
- master
paths:
- Samples/PublicSamples/RecordingBot/**
schedule:
- cron: "24 5 * * 5"

jobs:
analyze:
name: Analyze
runs-on: windows-2022
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
# required for all workflows
security-events: write

defaults:
run:
working-directory: Samples/PublicSamples/RecordingBot/src

strategy:
fail-fast: false
matrix:
language: [csharp]
# CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ]
# Use only 'java-kotlin' to analyze code written in Java, Kotlin or both
# Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: "8.0.x"

- name: Rename .env-template
run: |
Rename-Item "RecordingBot.Tests\.env-template" -NewName ".env"
Rename-Item "RecordingBot.Console\.env-template" -NewName ".env"

- name: Build project
run: dotnet build

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
42 changes: 42 additions & 0 deletions .github/workflows/publicrecordingbot_release-docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Recording Bot Release Docker Image

on:
push:
branches:
- main
- master
paths:
- Samples/PublicSamples/RecordingBot/**
- .github/workflows/publicrecordingbot_release-docker-image.yml

jobs:
build-push-cr:
runs-on: windows-2022

permissions:
packages: write

defaults:
run:
working-directory: Samples/PublicSamples/RecordingBot

steps:
- name: Checkout
uses: actions/checkout@v1

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Tag docker image
shell: bash
run: |
docker build -f ./build/Dockerfile . -t ${{ vars.CR_NAMESPACE_REPOSITORY }}:latest

- name: Push docker image to CR
shell: bash
run: |
docker push ${{ vars.CR_NAMESPACE_REPOSITORY }}:latest
65 changes: 65 additions & 0 deletions Samples/PublicSamples/RecordingBot/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
_ReSharper.*/
.git

**/Obj/
**/obj/
**/bin/
**/Bin/
.vs/
*.xap
*.user
/TestResults
*.vspscc
*.vssscc
*.suo
*.cache
*.docstates
_ReSharper.*
*.csproj.user
*[Rr]e[Ss]harper.user
_ReSharper.*/
packages/*
artifacts/*
msbuild.log
PublishProfiles/
*.psess
*.vsp
*.pidb
*.userprefs
*DS_Store
*.ncrunchsolution
*.log
*.vspx
/.symbols
nuget.exe
*net45.csproj
*k10.csproj
App_Data/
bower_components
node_modules
*.sln.ide
*.ng.ts
*.sln.ide
.build/
.testpublish/
launchSettings.json

# NuGet Packages
*.nupkg
# The packages folder can be ignored because of Package Restore
**/packages/*
# except build/, which is used as an MSBuild target.
!**/packages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/packages/repositories.config
# NuGet v3's project.json files produces more ignoreable files
*.nuget.props
*.nuget.targets

**/.vs/*
**/*.wav

**/.env-template
**/.env

samples
Loading