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

Merge new quickstarts into master #612

Merged
merged 304 commits into from
Mar 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
304 commits
Select commit Hold shift + click to select a range
2706a3f
Update Commands
amulyavarote Jan 27, 2022
6ed0f11
Update Commands
amulyavarote Jan 27, 2022
3f18162
Modified version of jinja2 for security
amulyavarote Jan 27, 2022
1f32f0c
Changed node-fetch version to avoid security vulnerability
Jan 27, 2022
06767bd
Next iteration of python pub/sub
paulyuk Jan 31, 2022
6b788e6
updated .gitignore to include *.txt (requirements.txt)
paulyuk Jan 31, 2022
c9e388c
Adding Dotnet readme, and fixed bugs on .NET 6 routes
paulyuk Jan 31, 2022
a0be03d
Removed controller in favor of minimal code approach in Program.cs
paulyuk Jan 31, 2022
8fc261b
Bug fix for deserializing data.orderid the .NET way
paulyuk Jan 31, 2022
3de7896
Simplify pub/sub routing using [Topic] attribute
paulyuk Feb 1, 2022
73b1a26
removing dead code for custom subscription type
paulyuk Feb 1, 2022
aadee3a
Update Program.cs
amulyavarote Jan 31, 2022
9a921b5
Style and code review feedback per @rynowak
paulyuk Feb 1, 2022
1622e11
Uses cloudevents sdk for event deserialization
paulyuk Feb 1, 2022
17cbaed
MapSubscribers fix per Ryan's review
paulyuk Feb 2, 2022
9195747
Draft commit for csharp-http quickstart -- uses no Dapr SDK, only http
paulyuk Feb 6, 2022
5504b18
Minimal .NET 6 code for http post to dapr pub/sub
paulyuk Feb 6, 2022
68a8128
updated readme with link to SDK example
paulyuk Feb 6, 2022
c309e16
Add Order Processing for Javascript:
XavierGeerinck Feb 1, 2022
5b1193d
Adapt to DAPR_ and fix --dapr-grpc to --dapr-http
XavierGeerinck Feb 3, 2022
3ed7575
add python-http
paulyuk Feb 6, 2022
5ce74ea
Node pub-sub consistency fixes with other langs
paulyuk Feb 7, 2022
d5d37ce
More consistency fixes
paulyuk Feb 7, 2022
e37a05a
Consistency pass for strings and logs python/C#
paulyuk Feb 7, 2022
1aae5a3
Python multiline style improvements
paulyuk Feb 7, 2022
49f3bdd
Removing unused dependency
paulyuk Feb 7, 2022
a14374c
Updated readmes with cross pointers SDK <--> HTTP
paulyuk Feb 7, 2022
a4b3b0f
Make port in code and npm run start:dapr match
paulyuk Feb 7, 2022
93a7c8b
Consistent env vars and strings
paulyuk Feb 7, 2022
3fc90fc
Using official DAPR_HTTP_PORT
paulyuk Feb 7, 2022
4f33c01
typo in comment
paulyuk Feb 7, 2022
f20a96d
Per @amulya fixing camelCase in orderId
paulyuk Feb 8, 2022
1409196
matching camelCase for orderId json. tests Pass
paulyuk Feb 8, 2022
f2eb9d1
Add http example for JavaScript pubsub
greenie-msft Feb 8, 2022
40e7fe9
Remove whitespace
greenie-msft Feb 7, 2022
f47bfef
create http and sdk directories for each language
greenie-msft Feb 8, 2022
567f2c0
Move Readme and fix broken links
greenie-msft Feb 8, 2022
6e38393
Remove quickstarts that need to be redone
greenie-msft Feb 8, 2022
b4f4db8
Remove .vscode dir
greenie-msft Feb 8, 2022
50fe35e
Update README.md
Feb 10, 2022
4ddcd24
Update README.md
Feb 10, 2022
3618774
Update README.md
Feb 10, 2022
5161696
Fix the components path on the run command
Feb 10, 2022
d799eb0
State Management quickstarts examples added. (#528)
amulyavarote Feb 14, 2022
b34575e
Changed loop from while to for (#537)
amulyavarote Feb 17, 2022
85f6c6c
Feature/java sdk pubsub quickstarts (#533)
pravinpushkar Feb 17, 2022
d4ffc33
Feature/java http pubsub quickstarts (#534)
pravinpushkar Feb 17, 2022
3ccd3d3
Testing GitHub actions for new quickstarts directory structure (#538)
amulyavarote Feb 22, 2022
554ee20
using sequence instead of random numbers for orders (#540)
pravinpushkar Feb 23, 2022
e890128
Quickstart example for State Management in Java (#535)
pravinpushkar Feb 23, 2022
90a125f
Added workflow dispatch to trigger the validation (#546)
amulyavarote Feb 27, 2022
3158377
Merge updates from master into feature/new_quickstarts (#573)
greenie-msft Mar 4, 2022
cc8aa93
Added service invocation examples (#536)
amulyavarote Mar 4, 2022
aeef211
Remove extra files from merge (#574)
greenie-msft Mar 4, 2022
fd6f7dd
Added tests for service invocation (#576)
amulyavarote Mar 7, 2022
4579c16
Fixes #579
paulyuk Mar 7, 2022
a5b8b58
Fix pubsub JS tests (#582)
tanvigour Mar 8, 2022
05aadd9
C# pubsub test fixes (#581)
tanvigour Mar 8, 2022
535420c
test fix for pubsub python (#578)
tanvigour Mar 8, 2022
7100cac
Add tests for pubsub java (#575)
tanvigour Mar 8, 2022
ce9d732
Added go pub sub examples to quickstarts (#584)
amulyavarote Mar 9, 2022
70ba067
Service invocation example using Java and HTTP (#577)
pravinpushkar Mar 9, 2022
3077811
Removing java/.gitignore and including MSFT JDK link in README.md (#590)
pravinpushkar Mar 10, 2022
c36e141
Revise readme so it aligns with new quickstarts (#589)
greenie-msft Mar 10, 2022
e810618
Changed path in service invocation tests (#597)
amulyavarote Mar 12, 2022
d4f7f2b
Fixed go tests (#598)
amulyavarote Mar 12, 2022
d809674
pubsub test fixes (#596)
tanvigour Mar 14, 2022
e6e1141
add new validaters for new quickstarts - pubsub (#606)
tanvigour Mar 17, 2022
b3b1e2d
Added validations for service invocation (#607)
amulyavarote Mar 18, 2022
066424d
Renamed workflows and changes licenses (#609)
amulyavarote Mar 18, 2022
c2410e1
Update README.md (#489)
wcs1only Nov 8, 2021
6344f43
Turn on macos validation in github actions (#417)
wcs1only Nov 9, 2021
3230512
Bump url-parse in /distributed-calculator/react-calculator/client (#467)
dependabot[bot] Nov 10, 2021
01bb6a9
Add 1.5.0 to release table (#491)
wcs1only Nov 12, 2021
5d6eba8
Bump tmpl in /distributed-calculator/react-calculator/client (#475)
dependabot[bot] Nov 17, 2021
5e8c4f4
Update LICENSE to Apache 2.0 (#495)
greenie-msft Dec 2, 2021
68ce835
The hello-world example does not use DELETE. Removing dead code (#494)
wcs1only Dec 6, 2021
f985a91
Add DCO requirements and updated code of conduct (#504)
willtsai Jan 12, 2022
ab994a5
Add a PR template with instructions for updating automatic validation…
wcs1only Jan 12, 2022
41a8c90
Changed hello worlds quickstarts to use http proxying for service inv…
greenie-msft Jan 13, 2022
d6fb9d7
Update distributed-calculator package-lock (#508)
wcs1only Jan 13, 2022
9c2c2bf
bump dev-container image to 1.6.9 (#500)
spottedmahn Jan 14, 2022
d26b950
Bump flask-cors from 3.0.8 to 3.0.9 in /pub-sub/python-subscriber (#509)
dependabot[bot] Jan 14, 2022
265e0ba
Initial checkin new GH cache.yaml action for 3rdParty images
paulyuk Mar 12, 2022
d120028
Fix upstream issue in Create-React-App (#514)
XavierGeerinck Jan 18, 2022
d124206
Bump jinja2 from 2.10.1 to 2.11.3 in /pub-sub/python-subscriber (#510)
dependabot[bot] Jan 18, 2022
2761fc8
Moving middleware out of repo to dapr/samples (#513)
paulyuk Jan 18, 2022
b31e320
Bump node-fetch from 1.7.3 to 2.6.7 in /bindings/nodeapp (#515)
dependabot[bot] Jan 19, 2022
14fe6cf
Make sure the client is actual built (#517)
XavierGeerinck Jan 20, 2022
efedec7
Update DevContainer base image to fix CodeSpaces and DevContainer iss…
paulyuk Jan 24, 2022
ea37e59
Release 1.6 (#525)
dmitsh Jan 25, 2022
0add32a
Bump follow-redirects in /distributed-calculator/react-calculator/cli…
dependabot[bot] Feb 18, 2022
c1527dc
Bump follow-redirects in /pub-sub/react-form/client (#531)
dependabot[bot] Feb 18, 2022
7e604eb
Refresh pub-sub quickstart (tutorial) fixing routes and stale depende…
paulyuk Feb 23, 2022
80437a2
Paulyuk/fixpubsuberror (#547)
paulyuk Feb 23, 2022
2633a63
Improved MM test fix for quickstarts (#548)
paulyuk Feb 24, 2022
345cd01
Fix curl sample to work on macOS (#543)
marcinjahn Feb 27, 2022
471ba7b
Fix sample path in readme (#555)
Feb 27, 2022
791f289
Remove PR check for docker login (#565)
tanvigour Mar 2, 2022
9b5da48
Test validation cleanup (#569)
tanvigour Mar 3, 2022
5f73038
Publish Quickstart images to ghcr (#571)
tanvigour Mar 8, 2022
a5f9643
Add create manifest step for ghcr (#583)
tanvigour Mar 8, 2022
90aaff2
login to ghcr before creating manifest (#588)
tanvigour Mar 9, 2022
4eb795e
Fix GHCR scope issue (#591)
tanvigour Mar 10, 2022
971eff1
removing buildx steps that are not needed
paulyuk Mar 12, 2022
05005f8
cleanup
paulyuk Mar 12, 2022
9a4b3cb
Trigger on cron schedule and also using real 3rdparty images now
paulyuk Mar 12, 2022
419e89a
adding workflow_dispatch on trigger for manually runs
paulyuk Mar 12, 2022
90dcb45
workflow_dispatch spaces fix
paulyuk Mar 12, 2022
f90f76e
trying 3rdparty subfolder
paulyuk Mar 12, 2022
e8e8465
Changing env variables to match upstream master in dapr/quickstarts
paulyuk Mar 12, 2022
5dbc39d
Git CLI had default remote set to upstream master
paulyuk Mar 12, 2022
c73d0ed
Revert "trying 3rdparty subfolder"
paulyuk Mar 12, 2022
aa268db
Revert "workflow_dispatch spaces fix"
paulyuk Mar 12, 2022
94ae818
Revert "adding workflow_dispatch on trigger for manually runs"
paulyuk Mar 12, 2022
a6f33c3
Revert "Trigger on cron schedule and also using real 3rdparty images …
paulyuk Mar 12, 2022
ef8d580
Revert "cleanup"
paulyuk Mar 12, 2022
ce2b161
Revert "removing buildx steps that are not needed"
paulyuk Mar 12, 2022
f2978c6
run in dapr main repo with dapr ghcr account (#600)
tanvigour Mar 14, 2022
8b826a8
fix the typo in ghcr (#601)
tanvigour Mar 14, 2022
5fd2452
changes to pull from ghcr instead of dockerhub (#602)
tanvigour Mar 16, 2022
2b56430
Final change to migrate Bindings test to GHCR (action now in dapr/dap…
paulyuk Mar 16, 2022
e82aa0a
Add back PR trigger (#605)
tanvigour Mar 17, 2022
3bd0c1e
Move existing quickstarts into tutorials directory.
greenie-msft Feb 10, 2022
77f28ae
First Commit
Oct 26, 2021
972d697
Directory structure based on building blocks
Oct 26, 2021
c133fe8
Folder error fix
Oct 26, 2021
b036d9e
Removed Java project
Oct 26, 2021
3550007
Added java EventService
Oct 26, 2021
0433027
Added java OrderProcessingService
Oct 26, 2021
e7dc51c
Added java CheckoutService
Oct 26, 2021
8dcd029
Some csharp changes and javascript project
Oct 27, 2021
2843ba8
Changed for loop of event service in js
Oct 27, 2021
e98be4e
Deleted order processing folder from php
Oct 28, 2021
9278998
Remove ignored files
Nov 2, 2021
67fea64
deleted additonal gitignore files
Nov 2, 2021
3e29b02
Modified git ignore file
Nov 2, 2021
c6b9050
Removing Event Service
Nov 11, 2021
7a53209
Added state management examples
Nov 13, 2021
3986b78
Commands file edited
Nov 13, 2021
b78a636
Modified code
Nov 14, 2021
cffc575
Added secrets management examples
Nov 16, 2021
7c172d3
Added secrets management examples
Nov 16, 2021
ceacc05
pub Sub examples
Nov 23, 2021
0592bc7
Added commands
amulyavarote Nov 23, 2021
265bc2f
Commands added
amulyavarote Nov 23, 2021
f0f1568
Added commands
amulyavarote Nov 23, 2021
5e4f319
Commands added
amulyavarote Nov 23, 2021
2d95565
Delete Commands.docx
amulyavarote Nov 23, 2021
f95136d
Delete Commands.docx
amulyavarote Nov 23, 2021
71aabbd
Delete Commands.docx
amulyavarote Nov 23, 2021
b453eab
Delete Commands.docx
amulyavarote Nov 23, 2021
5c466ae
Used yaml file added
amulyavarote Nov 23, 2021
a763d80
Edited commands
amulyavarote Nov 23, 2021
63a5e06
Edited commands
amulyavarote Nov 23, 2021
8886216
Edited commands
amulyavarote Nov 23, 2021
8f6a312
Added bindings examples
Dec 2, 2021
0f60311
js command fixed
amulyavarote Nov 23, 2021
812dd13
js command fixed
amulyavarote Nov 23, 2021
dded332
js command fixed
amulyavarote Nov 23, 2021
c215bcd
js command fixed
amulyavarote Nov 23, 2021
1a18e68
Added docker command to start rabbitMQ
amulyavarote Dec 3, 2021
e1171e3
Added bindings related yaml contents
amulyavarote Dec 3, 2021
90b27a8
Changed python comments
amulyavarote Dec 3, 2021
e5ece34
Changed python commands
amulyavarote Dec 3, 2021
50c5491
Changed python code for pub sub
Dec 3, 2021
54442cb
Removed unwanted code
Dec 5, 2021
166c166
Added components folder
Jan 13, 2022
ecf41ed
Modified commands to include components directory.
amulyavarote Jan 13, 2022
a4dc845
Modified commands to include components folder
amulyavarote Jan 13, 2022
87e520a
swap out rabbitmq component for default redis
hhunter-ms Jan 20, 2022
829beb7
Added ack messages once received in pubsub
Jan 25, 2022
0cf497f
adding requirements.txt for quickstart
hhunter-ms Jan 21, 2022
fa01abb
Added http type service invocation
Jan 27, 2022
60e12e5
Modified kafka docker command
amulyavarote Jan 27, 2022
4332d44
changed http port to grpc port
amulyavarote Jan 27, 2022
8c705bc
changed http port to grpc port
amulyavarote Jan 27, 2022
8df84ba
Update Commands
amulyavarote Jan 27, 2022
4064fa4
Update Commands
amulyavarote Jan 27, 2022
a06d8cb
Modified version of jinja2 for security
amulyavarote Jan 27, 2022
ae079fc
Changed node-fetch version to avoid security vulnerability
Jan 27, 2022
ce39ec9
Next iteration of python pub/sub
paulyuk Jan 31, 2022
df61f92
updated .gitignore to include *.txt (requirements.txt)
paulyuk Jan 31, 2022
331d2e9
Adding Dotnet readme, and fixed bugs on .NET 6 routes
paulyuk Jan 31, 2022
7cc8681
Removed controller in favor of minimal code approach in Program.cs
paulyuk Jan 31, 2022
1fb46e7
Bug fix for deserializing data.orderid the .NET way
paulyuk Jan 31, 2022
55ef85a
Simplify pub/sub routing using [Topic] attribute
paulyuk Feb 1, 2022
849e175
removing dead code for custom subscription type
paulyuk Feb 1, 2022
53cb1e4
Update Program.cs
amulyavarote Jan 31, 2022
452ee3b
Style and code review feedback per @rynowak
paulyuk Feb 1, 2022
c1f4dee
Uses cloudevents sdk for event deserialization
paulyuk Feb 1, 2022
0e07fbb
MapSubscribers fix per Ryan's review
paulyuk Feb 2, 2022
ab47b96
Draft commit for csharp-http quickstart -- uses no Dapr SDK, only http
paulyuk Feb 6, 2022
bbad4a2
Minimal .NET 6 code for http post to dapr pub/sub
paulyuk Feb 6, 2022
6b66fb6
updated readme with link to SDK example
paulyuk Feb 6, 2022
82210a9
Add Order Processing for Javascript:
XavierGeerinck Feb 1, 2022
74d4914
Adapt to DAPR_ and fix --dapr-grpc to --dapr-http
XavierGeerinck Feb 3, 2022
c995187
add python-http
paulyuk Feb 6, 2022
9bff60a
Node pub-sub consistency fixes with other langs
paulyuk Feb 7, 2022
d91560d
More consistency fixes
paulyuk Feb 7, 2022
495f9b4
Consistency pass for strings and logs python/C#
paulyuk Feb 7, 2022
e5a4de5
Python multiline style improvements
paulyuk Feb 7, 2022
d2fca59
Removing unused dependency
paulyuk Feb 7, 2022
da1091b
Updated readmes with cross pointers SDK <--> HTTP
paulyuk Feb 7, 2022
040f22c
Make port in code and npm run start:dapr match
paulyuk Feb 7, 2022
7413db1
Consistent env vars and strings
paulyuk Feb 7, 2022
4018932
Using official DAPR_HTTP_PORT
paulyuk Feb 7, 2022
74f6a58
typo in comment
paulyuk Feb 7, 2022
e40cc69
Per @amulya fixing camelCase in orderId
paulyuk Feb 8, 2022
3e7e55a
matching camelCase for orderId json. tests Pass
paulyuk Feb 8, 2022
9af25db
Add http example for JavaScript pubsub
greenie-msft Feb 8, 2022
ea01f5c
Remove whitespace
greenie-msft Feb 7, 2022
0b5a37a
create http and sdk directories for each language
greenie-msft Feb 8, 2022
4b75497
Move Readme and fix broken links
greenie-msft Feb 8, 2022
5897fcc
Remove quickstarts that need to be redone
greenie-msft Feb 8, 2022
eab6cac
Remove .vscode dir
greenie-msft Feb 8, 2022
e6c499a
Update README.md
Feb 10, 2022
4f6b6f9
Update README.md
Feb 10, 2022
46ac100
Update README.md
Feb 10, 2022
ddba430
Fix the components path on the run command
Feb 10, 2022
46d6a7a
State Management quickstarts examples added. (#528)
amulyavarote Feb 14, 2022
7bf74a8
Changed loop from while to for (#537)
amulyavarote Feb 17, 2022
e0d3f6b
Feature/java sdk pubsub quickstarts (#533)
pravinpushkar Feb 17, 2022
46ad73f
Feature/java http pubsub quickstarts (#534)
pravinpushkar Feb 17, 2022
782eab7
Testing GitHub actions for new quickstarts directory structure (#538)
amulyavarote Feb 22, 2022
07ee14e
using sequence instead of random numbers for orders (#540)
pravinpushkar Feb 23, 2022
067bae8
Quickstart example for State Management in Java (#535)
pravinpushkar Feb 23, 2022
711c1fc
Added workflow dispatch to trigger the validation (#546)
amulyavarote Feb 27, 2022
eb036f4
Merge updates from master into feature/new_quickstarts (#573)
greenie-msft Mar 4, 2022
3d82108
Added service invocation examples (#536)
amulyavarote Mar 4, 2022
c5d7689
Remove extra files from merge (#574)
greenie-msft Mar 4, 2022
0a7526d
Added tests for service invocation (#576)
amulyavarote Mar 7, 2022
db7aa69
Fixes #579
paulyuk Mar 7, 2022
a3aa238
Fix pubsub JS tests (#582)
tanvigour Mar 8, 2022
d689061
C# pubsub test fixes (#581)
tanvigour Mar 8, 2022
e9e38b9
test fix for pubsub python (#578)
tanvigour Mar 8, 2022
4d5399d
Add tests for pubsub java (#575)
tanvigour Mar 8, 2022
7463d08
Added go pub sub examples to quickstarts (#584)
amulyavarote Mar 9, 2022
ac8ce36
Service invocation example using Java and HTTP (#577)
pravinpushkar Mar 9, 2022
8461a09
Removing java/.gitignore and including MSFT JDK link in README.md (#590)
pravinpushkar Mar 10, 2022
48356b9
Revise readme so it aligns with new quickstarts (#589)
greenie-msft Mar 10, 2022
e553e48
Changed path in service invocation tests (#597)
amulyavarote Mar 12, 2022
cc261ab
Fixed go tests (#598)
amulyavarote Mar 12, 2022
aa96fca
pubsub test fixes (#596)
tanvigour Mar 14, 2022
1fdb20c
add new validaters for new quickstarts - pubsub (#606)
tanvigour Mar 17, 2022
a84baa4
Added validations for service invocation (#607)
amulyavarote Mar 18, 2022
8b3bc3d
Renamed workflows and changes licenses
Mar 18, 2022
fcd38b7
Merge branch 'feature/new_quickstarts' into feature/new_quickstarts
amulyavarote Mar 18, 2022
a0a45cf
Merge pull request #611 from amulyavarote/feature/new_quickstarts
artursouza Mar 18, 2022
21138fe
Merge remote-tracking branch 'upstream/master' into upstream_quickstarts
artursouza Mar 18, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file removed .DS_Store
Binary file not shown.
16 changes: 12 additions & 4 deletions .github/scripts/get_release_version.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
# ------------------------------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------------------------------
#
# Copyright 2021 The Dapr Authors
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# This script parses release version from Git tag and set the parsed version to
# environment variable, REL_VERSION.
Expand Down
43 changes: 21 additions & 22 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
# ------------------------------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------------------------------
#
# Copyright 2021 The Dapr Authors
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

name: samples

on:
push:
branches:
- master
- feature/new_quickstarts
- release-*
tags:
- v*
paths-ignore:
- '**.md'
pull_request:
branches:
- master
- release-*
workflow_dispatch:
jobs:
build:
Expand Down Expand Up @@ -58,21 +63,19 @@ jobs:
run: docker buildx inspect --bootstrap
- name: Build docker image
run: |
SAMPLE_LIST=(hello-kubernetes distributed-calculator pub-sub bindings observability secretstore)
SAMPLE_LIST=(tutorials/hello-kubernetes tutorials/distributed-calculator tutorials/pub-sub tutorials/bindings tutorials/observability tutorials/secretstore)
for sample in "${SAMPLE_LIST[@]}"; do
echo "Building image for ${sample}..."
pushd ${sample}
make build
popd
done
- name: docker login
if: github.event_name != 'pull_request'
run: |
docker login -u ${{ secrets.DOCKER_REGISTRY_ID }} -p ${{ secrets.DOCKER_REGISTRY_PASS }}
- name: publish image to dockerhub
if: github.event_name != 'pull_request'
run: |
SAMPLE_LIST=(hello-kubernetes distributed-calculator pub-sub bindings observability secretstore)
SAMPLE_LIST=(tutorials/hello-kubernetes tutorials/distributed-calculator tutorials/pub-sub tutorials/bindings tutorials/observability tutorials/secretstore)
for sample in "${SAMPLE_LIST[@]}"; do
echo "Push image for ${sample}..."
pushd ${sample}
Expand All @@ -90,7 +93,7 @@ jobs:
env:
SAMPLE_REGISTRY: ghcr.io/dapr/samples
run: |
SAMPLE_LIST=(hello-kubernetes distributed-calculator pub-sub bindings observability secretstore)
SAMPLE_LIST=(tutorials/hello-kubernetes tutorials/distributed-calculator tutorials/pub-sub tutorials/bindings tutorials/observability tutorials/secretstore)
for sample in "${SAMPLE_LIST[@]}"; do
echo "Building image for ${sample}..."
pushd ${sample}
Expand All @@ -102,7 +105,7 @@ jobs:
env:
SAMPLE_REGISTRY: ghcr.io/dapr/samples
run: |
SAMPLE_LIST=(hello-kubernetes distributed-calculator pub-sub bindings observability secretstore)
SAMPLE_LIST=(tutorials/hello-kubernetes tutorials/distributed-calculator tutorials/pub-sub tutorials/bindings tutorials/observability tutorials/secretstore)
for sample in "${SAMPLE_LIST[@]}"; do
echo "Push image for ${sample}..."
pushd ${sample}
Expand All @@ -121,23 +124,20 @@ jobs:
- name: Parse release version and set REL_VERSION
run: python ./.github/scripts/get_release_version.py
- name: create docker manifest
if: github.event_name != 'pull_request'
run: |
SAMPLE_LIST=(hello-kubernetes distributed-calculator pub-sub bindings observability secretstore)
SAMPLE_LIST=(tutorials/hello-kubernetes tutorials/distributed-calculator tutorials/pub-sub tutorials/bindings tutorials/observability tutorials/secretstore)
for sample in "${SAMPLE_LIST[@]}"; do
echo "Building image for ${sample}..."
pushd ${sample}
make manifest-create
popd
done
- name: docker login
if: github.event_name != 'pull_request'
run: |
docker login -u ${{ secrets.DOCKER_REGISTRY_ID }} -p ${{ secrets.DOCKER_REGISTRY_PASS }}
- name: publish manifest to dockerhub
if: github.event_name != 'pull_request'
run: |
SAMPLE_LIST=(hello-kubernetes distributed-calculator pub-sub bindings observability secretstore)
SAMPLE_LIST=(tutorials/hello-kubernetes tutorials/distributed-calculator tutorials/pub-sub tutorials/bindings tutorials/observability tutorials/secretstore)
for sample in "${SAMPLE_LIST[@]}"; do
echo "Push image for ${sample}..."
pushd ${sample}
Expand All @@ -156,8 +156,7 @@ jobs:
env:
SAMPLE_REGISTRY: ghcr.io/dapr/samples
run: |
SAMPLE_LIST=(hello-kubernetes distributed-calculator pub-sub bindings observability secretstore)

SAMPLE_LIST=(tutorials/hello-kubernetes tutorials/distributed-calculator tutorials/pub-sub tutorials/bindings tutorials/observability tutorials/secretstore)
for sample in "${SAMPLE_LIST[@]}"; do
echo "Building image for ${sample}..."
pushd ${sample}
Expand All @@ -169,7 +168,7 @@ jobs:
env:
SAMPLE_REGISTRY: ghcr.io/dapr/samples
run: |
SAMPLE_LIST=(hello-kubernetes distributed-calculator pub-sub bindings observability secretstore)
SAMPLE_LIST=(tutorials/hello-kubernetes tutorials/distributed-calculator tutorials/pub-sub tutorials/bindings tutorials/observability tutorials/secretstore)
for sample in "${SAMPLE_LIST[@]}"; do
echo "Push image for ${sample}..."
pushd ${sample}
Expand Down
35 changes: 23 additions & 12 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,31 @@
# ------------------------------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------------------------------
#
# Copyright 2021 The Dapr Authors
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

name: Auto Validate Quickstarts
name: Validate Tutorials

on:
workflow_dispatch:
push:
branches:
- master
- feature/new_quickstarts
- release-*
tags:
- v*
pull_request:
branches:
- master
- feature/new_quickstarts
- release-*
jobs:
deploy:
Expand Down Expand Up @@ -127,37 +138,37 @@ jobs:
pip3 install mechanical-markdown
- name: Validate hello-world
run: |
pushd hello-world
pushd tutorials/hello-world
make validate
popd
- name: Validate hello-kubernetes
run: |
pushd hello-kubernetes
pushd tutorials/hello-kubernetes
make validate
popd
- name: Validate distributed-calculator
run: |
pushd distributed-calculator
pushd tutorials/distributed-calculator
make validate
popd
- name: Validate pub-sub
run: |
pushd pub-sub
pushd tutorials/pub-sub
make validate
popd
- name: Validate bindings
run: |
pushd bindings
pushd tutorials/bindings
make validate
popd
- name: Validate secretstore
run: |
pushd secretstore
pushd tutorials/secretstore
make validate
popd
- name: Validate observability
run: |
pushd observability
pushd tutorials/observability
make validate
popd
- name: Linkcheck README.md
Expand Down
171 changes: 171 additions & 0 deletions .github/workflows/validate_new_quickstarts_pubsub.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
#
# Copyright 2021 The Dapr Authors
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

name: Validate PubSub

on:
workflow_dispatch:
push:
branches:
- master
- feature/new_quickstarts
- release-*
tags:
- v*
pull_request:
branches:
- master
- feature/new_quickstarts
- release-*
jobs:
deploy:
name: Validate quickstarts on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
env:
DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/master/install
GOVER: 1.17
KUBERNETES_VERSION: v1.21.1
KIND_VERSION: v0.11.0
KIND_IMAGE_SHA: sha256:69860bda5563ac81e3c0057d654b5253219618a22ec3a346306239bba8cfa1a6
strategy:
matrix:
os: [ubuntu-latest, macos-10.15]
steps:
- name: Install docker - MacOS
if: matrix.os == 'macos-10.15'
uses: docker-practice/actions-setup-docker@v1
with:
docker_buildx: false
docker_version: 20.10
- name: Configure KinD
if: matrix.os == 'ubuntu-latest'
# Generate a KinD configuration file that uses:
# A couple of worker nodes: this is needed to run both
# ZooKeeper + Kakfa
working-directory: ./
run: |
cat > kind.yaml <<EOF
apiVersion: kind.x-k8s.io/v1alpha4
kind: Cluster
nodes:
- role: control-plane
image: kindest/node:${{ env.KUBERNETES_VERSION }}@${{ env.KIND_IMAGE_SHA }}
- role: worker
image: kindest/node:${{ env.KUBERNETES_VERSION }}@${{ env.KIND_IMAGE_SHA }}
- role: worker
image: kindest/node:${{ env.KUBERNETES_VERSION }}@${{ env.KIND_IMAGE_SHA }}
- role: worker
image: kindest/node:${{ env.KUBERNETES_VERSION }}@${{ env.KIND_IMAGE_SHA }}
- role: worker
image: kindest/node:${{ env.KUBERNETES_VERSION }}@${{ env.KIND_IMAGE_SHA }}
EOF

# Log the generated kind.yaml for easy reference.
cat kind.yaml

- name: Create KinD Cluster - Linux
if: matrix.os == 'ubuntu-latest'
uses: helm/kind-action@v1.0.0
with:
config: kind.yaml
cluster_name: kind
version: ${{ env.KIND_VERSION }}
- name: Install minikube - MacOS
if: matrix.os == 'macos-10.15'
run: |
brew install kubernetes-cli || brew link --overwrite kubernetes-cli
brew install minikube
minikube start --driver=virtualbox --memory 4096 --host-only-cidr "192.168.59.1/24"
- name: Get KinD info
if: matrix.os == 'ubuntu-latest'
run: |
kubectl cluster-info --context kind-kind
NODE_IP=$(kubectl get nodes \
-lkubernetes.io/hostname!=kind-control-plane \
-ojsonpath='{.items[0].status.addresses[?(@.type=="InternalIP")].address}')
echo "SERVICE_IP=$NODE_IP" >> $GITHUB_ENV
- name: Set up Go ${{ env.GOVER }}
uses: actions/setup-go@v2
with:
go-version: ${{ env.GOVER }}
- name: Determine latest Dapr Runtime version including Pre-releases
run: |
helm repo add dapr https://dapr.github.io/helm-charts/ && helm repo update && export RUNTIME_VERSION=$(helm search repo dapr/dapr --devel --versions | awk '/dapr\/dapr/ {print $3; exit}' )
echo "DAPR_RUNTIME_VERSION=$RUNTIME_VERSION" >> $GITHUB_ENV
echo "Found $RUNTIME_VERSION"
shell: bash
- name: Determine latest Dapr Cli version including Pre-releases
run: |
export CLI_VERSION=$(curl "https://api.github.com/repos/dapr/cli/releases?per_page=1&page=1" --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' | jq '.[0].tag_name'| tr -d '",v')
echo "DAPR_CLI_VERSION=$CLI_VERSION" >> $GITHUB_ENV
echo "Found $CLI_VERSION"
shell: bash
- name: Set up Dapr CLI - Mac/Linux
if: matrix.os != 'windows-latest'
run: wget -q ${{ env.DAPR_INSTALL_URL }}/install.sh -O - | /bin/bash -s ${{ env.DAPR_CLI_VERSION }}
- name: Set up Dapr CLI - Windows
if: matrix.os == 'windows-latest'
run: powershell -Command "\$$script=iwr -useb ${{ env.DAPR_INSTALL_URL }}/install.ps1; \$$block=[ScriptBlock]::Create(\$$script); invoke-command -ScriptBlock \$$block -ArgumentList ${{ env.DAPR_CLI_VERSION }}"
- name: Install Dapr
run: |
export GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
dapr init --runtime-version=${{ env.DAPR_RUNTIME_VERSION }}
dapr --version
- name: Install Dapr - Kubernetes
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update
helm install redis bitnami/redis
dapr init -k --runtime-version=${{ env.DAPR_RUNTIME_VERSION }} --wait || kubectl get pods --all-namespaces
kubectl get nodes -o wide
for pod in `dapr status -k | awk '/dapr/ {print $1}'`; do kubectl describe pod -l app=$pod -n dapr-system ; kubectl logs -l app=$pod -n dapr-system; done
- name: Check out code
uses: actions/checkout@v2
- name: Install utilities dependencies
run: |
echo "PATH=$PATH:$HOME/.local/bin" >> $GITHUB_ENV
pip3 install setuptools wheel
pip3 install mechanical-markdown
- name: Validate Go http pubsub
run: |
pushd pub_sub/go/http
make validate
popd
- name: Validate Go sdk pubsub
run: |
pushd pub_sub/go/sdk
make validate
popd
- name: Validate JS http pubsub
run: |
pushd pub_sub/javascript/http
make validate
popd
- name: Validate JS sdk pubsub
run: |
pushd pub_sub/javascript/sdk
make validate
popd
- name: Validate python http pubsub
run: |
pushd pub_sub/python/http
make validate
popd
- name: Validate python sdk pubsub
run: |
pushd pub_sub/python/sdk
make validate
popd
- name: Linkcheck README.md
run: |
make validate
Loading