Skip to content

Commit ac66f90

Browse files
Updates readme
Signed-off-by: Elena Kolevska <[email protected]>
1 parent 0d34aa2 commit ac66f90

File tree

2 files changed

+45
-21
lines changed

2 files changed

+45
-21
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ Go deeper into a topic or scenario, oftentimes using building block APIs togethe
4343
### Updating sdk versions
4444
- Python: `make update_python_sdk_version [DAPR_VERSION=1.16.0] [FASTAPI_VERSION=1.16.0] [WORKFLOW_VERSION=1.16.0]`
4545
- Go: `make update_gosdk_version VERSION=v1.16.0`
46+
- C#: `make update_dotnet_sdk_version VERSION=1.15.0`
47+
- Java: `make update_java_sdk_version VERSION=1.12.0`
48+
- Javascript: `make update_javascript_sdk_version VERSION=3.4.0`
4649

4750
### Validating all the quickstarts
4851
To run the samples, you need to have Dapr installed. Follow the [Getting Started](https://docs.dapr.io/getting-started/install-dapr-cli/) guide to install Dapr.

makefile

Lines changed: 42 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
1-
include validate.mk
2-
1+
##################################################
2+
# Main targets
3+
##################################################
34
MM_SHELL ?= bash -c
5+
.PHONY: all test_all_quickstarts
46
all: install_mm validat
57

6-
# Update go-sdk dependencies in this project and all subprojects
8+
# Run all tests at once
9+
test_all_quickstarts: test_go_quickstarts test_python_quickstarts test_csharp_quickstarts test_java_quickstarts test_javascript_quickstarts
10+
@echo "All quickstart tests complete!"
11+
12+
##################################################
13+
# Version update targets
14+
##################################################
15+
16+
# Update Go SDK version in all quickstarts
717
# Usage: make update_gosdk_version VERSION=v1.13.0-rc.1
18+
.PHONY: update_gosdk_version
819
update_gosdk_version:
920
@if [ -z "$(VERSION)" ]; then \
1021
echo "Error: VERSION parameter is required. Usage: make update_gosdk_version VERSION=v1.13.0-rc.1"; \
@@ -49,8 +60,9 @@ update_gosdk_version:
4960
done
5061
@echo "go-sdk update complete! Please verify changes and run tests before committing."
5162

52-
# Target to update Python dependencies in all quickstarts
63+
# Update Python SDK version in all quickstarts
5364
# Usage: make update_python_sdk_version [DAPR_VERSION=1.16.0] [FASTAPI_VERSION=1.16.0] [WORKFLOW_VERSION=1.16.0]
65+
.PHONY: update_python_sdk_version
5466
update_python_sdk_version:
5567
@echo "Updating Python dependencies in all quickstarts..."
5668
@find . -path '*/python/*' -name "requirements.txt" | while read -r REQ_FILE; do \
@@ -74,15 +86,16 @@ update_python_sdk_version:
7486
done
7587
@echo "Python dependency update complete! Please verify changes and run tests before committing."
7688

77-
# Target to update Dapr package versions in all C# quickstarts (SDK variant only)
89+
# Update .NET SDK version in all C# quickstarts
7890
# Usage: make update_dotnet_sdk_version VERSION=1.15.0
91+
.PHONY: update_dotnet_sdk_version
7992
update_dotnet_sdk_version:
8093
@if [ -z "$(VERSION)" ]; then \
81-
echo "Error: VERSION parameter is required. Usage: make update_csharp_dapr VERSION=1.16.0-rc01"; \
94+
echo "Error: VERSION parameter is required. Usage: make update_dotnet_sdk_version VERSION=1.16.0-rc01"; \
8295
exit 1; \
8396
fi
8497
@echo "Updating Dapr packages to version $(VERSION) in all C# projects..."
85-
98+
8699
@# Process standard SDK quickstarts
87100
@echo "Processing SDK quickstarts..."
88101
@building_blocks=$$(find . -maxdepth 1 -mindepth 1 -type d); \
@@ -111,7 +124,7 @@ update_dotnet_sdk_version:
111124
fi; \
112125
fi; \
113126
done
114-
127+
115128
@# Process tutorials directory separately
116129
@echo "Processing tutorials directory..."
117130
@if [ -d "./tutorials" ]; then \
@@ -139,11 +152,12 @@ update_dotnet_sdk_version:
139152
else \
140153
echo "No tutorials directory found"; \
141154
fi
142-
155+
143156
@echo "C# Dapr package update complete! Please verify changes and run tests before committing."
144157

145-
# Target to update Dapr package versions in all JavaScript quickstarts (SDK variant only)
158+
# Update JavaScript SDK version in all quickstarts
146159
# Usage: make update_javascript_sdk_version VERSION=3.4.0
160+
.PHONY: update_javascript_sdk_version
147161
update_javascript_sdk_version:
148162
@if [ -z "$(VERSION)" ]; then \
149163
echo "Error: VERSION parameter is required. Usage: make update_javascript_sdk_version VERSION=3.4.0"; \
@@ -175,10 +189,9 @@ update_javascript_sdk_version:
175189
done
176190
@echo "JavaScript Dapr package update complete! Please verify changes and run tests before committing."
177191

178-
# Target to update Dapr SDK version in all Java quickstarts (SDK variant only)
179-
# Usage: make update_java_sdk_version VERSION=1.12.0
180-
# Target to update Dapr SDK version in all Java quickstarts (SDK variant only)
192+
# Update Java SDK version in all quickstarts
181193
# Usage: make update_java_sdk_version VERSION=1.12.0
194+
.PHONY: update_java_sdk_version
182195
update_java_sdk_version:
183196
@if [ -z "$(VERSION)" ]; then \
184197
echo "Error: VERSION parameter is required. Usage: make update_java_sdk_version VERSION=1.12.0"; \
@@ -214,6 +227,13 @@ update_java_sdk_version:
214227
done
215228
@echo "Java SDK update complete! Please verify changes and run tests before committing."
216229

230+
231+
##################################################
232+
# Testing targets
233+
##################################################
234+
235+
# Test Go quickstarts
236+
.PHONY: test_go_quickstarts
217237
test_go_quickstarts:
218238
@echo "Testing all Go quickstarts..."
219239
@building_blocks=$$(find . -maxdepth 1 -mindepth 1 -type d); \
@@ -229,6 +249,8 @@ test_go_quickstarts:
229249
done
230250
@echo "Go quickstart testing complete!"
231251

252+
# Test Python quickstarts
253+
.PHONY: test_python_quickstarts
232254
test_python_quickstarts:
233255
@echo "Testing all Python quickstarts..."
234256
@building_blocks=$$(find . -maxdepth 1 -mindepth 1 -type d); \
@@ -249,6 +271,8 @@ test_python_quickstarts:
249271
done
250272
@echo "Python quickstart testing complete!"
251273

274+
# Test C# quickstarts
275+
.PHONY: test_csharp_quickstarts
252276
test_csharp_quickstarts:
253277
@echo "Testing all C# quickstarts..."
254278
@building_blocks=$$(find . -maxdepth 1 -mindepth 1 -type d); \
@@ -264,7 +288,8 @@ test_csharp_quickstarts:
264288
done
265289
@echo "C# quickstart testing complete!"
266290

267-
# Target to test all Java quickstarts
291+
# Test Java quickstarts
292+
.PHONY: test_java_quickstarts
268293
test_java_quickstarts:
269294
@echo "Testing all Java quickstarts..."
270295
@building_blocks=$$(find . -maxdepth 1 -mindepth 1 -type d); \
@@ -280,7 +305,8 @@ test_java_quickstarts:
280305
done
281306
@echo "Java quickstart testing complete!"
282307

283-
# Target to test all JavaScript quickstarts
308+
# Test JavaScript quickstarts
309+
.PHONY: test_javascript_quickstarts
284310
test_javascript_quickstarts:
285311
@echo "Testing all JavaScript quickstarts..."
286312
@building_blocks=$$(find . -maxdepth 1 -mindepth 1 -type d); \
@@ -294,9 +320,4 @@ test_javascript_quickstarts:
294320
fi; \
295321
done; \
296322
done
297-
@echo "JavaScript quickstart testing complete!"
298-
299-
test_all_quickstarts: test_go_quickstarts test_python_quickstarts test_csharp_quickstarts test_java_quickstarts test_javascript_quickstarts
300-
@echo "All quickstart tests complete!"
301-
302-
.PHONY: all update_gosdk_version update_python_sdk_version update_dotnet_sdk_version update_javascript_sdk_version update_java_sdk_version test_go_quickstarts test_python_quickstarts test_csharp_quickstarts test_java_quickstarts test_javascript_quickstarts test_all_quickstarts
323+
@echo "JavaScript quickstart testing complete!"

0 commit comments

Comments
 (0)