Skip to content

Commit

Permalink
Update public Sample repo. (microsoftgraph#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
zihzhan-msft authored Nov 10, 2020
1 parent 4b57c68 commit b615fd3
Show file tree
Hide file tree
Showing 158 changed files with 10,702 additions and 1,508 deletions.
13 changes: 13 additions & 0 deletions Samples/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## Prerequisites
* Windows 10
* [Visual Studio 2019 or later](https://visualstudio.microsoft.com/vs/)
* [Azure Subscription](https://azure.microsoft.com/account/free)
* [Office 365 with admin rights](https://developer.microsoft.com/en-us/microsoft-365/dev-program)
* **.NET Framework** is required for Sample project (.NETCore is not supported at this moment)

**Optional:**
* [Ngrok Account](https://ngrok.com/) for local run

## Important:
All Samples have the minimum conponent to run different scenarios end to end. It's for onboarding and tutorial purpose.
It **should not** be considered for Production usage any time, including but not limited to security and scalability concerns.
65 changes: 65 additions & 0 deletions Samples/V1.0Samples/AksSamples/teams-recording-bot/.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
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## What this PR does / why we need it

## Special notes for your reviewer
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
name: build

on:
pull_request:
branches:
- master

jobs:
build:
runs-on: windows-latest

defaults:
run:
working-directory: src

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

- name: Setup dotnet
uses: actions/[email protected]
with:
dotnet-version: '3.1.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
id: test
run: |
$OUTPUT=(dotnet test --logger "trx;LogFileName=test-results.trx") | Out-String
echo $OUTPUT
$OUTPUT=$OUTPUT -replace "%", "%25" -replace "\n", "%0A" -replace "\r", "%0D"
echo "::set-output name=stdout::$OUTPUT"
- name: Post test results
if: ${{ failure() && steps.test.outcome == 'failure' }}
uses: actions/[email protected]
env:
STDOUT: "```${{ steps.test.outputs.stdout }}```"
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const output = `<details><summary>Test results:</summary>\n\n${process.env.STDOUT}\n\n</details>`;
github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: output
})
- name: Lint helm chart
id: helm
working-directory: deploy/teams-recording-bot
run: |
$OUTPUT=(helm lint) | Out-String
echo $OUTPUT
$OUTPUT=$OUTPUT -replace "%", "%25" -replace "\n", "%0A" -replace "\r", "%0D"
echo "::set-output name=stdout::$OUTPUT"
- name: Post helm results
if: ${{ failure() && steps.helm.outcome == 'failure' }}
uses: actions/[email protected]
env:
STDOUT: "```${{ steps.helm.outputs.stdout }}```"
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const output = `<details><summary>Helm lint failed:</summary>\n\n${process.env.STDOUT}\n\n</details>`;
github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: output
})
- name: Archive test results
uses: actions/upload-artifact@v2
with:
name: test-report
path: src\RecordingBot.Tests\TestResults\test-results.trx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Microsoft Open Source Code of Conduct

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).

Resources:

- [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/)
- [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
- Contact [[email protected]](mailto:[email protected]) with questions or concerns
21 changes: 21 additions & 0 deletions Samples/V1.0Samples/AksSamples/teams-recording-bot/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) Microsoft Corporation.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE
Loading

0 comments on commit b615fd3

Please sign in to comment.