Skip to content

Commit ffe7fd2

Browse files
Merge pull request #37 from dapr/add/gprc
Breaking change: refactor for grpc client
2 parents 29a5fdc + 8f32790 commit ffe7fd2

File tree

125 files changed

+5792
-3839
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+5792
-3839
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,23 @@
11
---
2-
name: Bug report
3-
about: Report a bug in Dapr
4-
title: ''
5-
labels: kind/bug
6-
assignees: ''
2+
name: Bug report about: Report a bug in Dapr title: ''
3+
labels: kind/bug assignees: ''
74

85
---
6+
97
## Expected Behavior
108

119
<!-- Briefly describe what you expect to happen -->
1210

13-
1411
## Actual Behavior
1512

1613
<!-- Briefly describe what is actually happening -->
1714

18-
1915
## Steps to Reproduce the Problem
2016

2117
<!-- How can a maintainer reproduce this issue (be detailed) -->
2218

2319
## Release Note
20+
2421
<!-- How should the fix for this issue be communicated in our release notes? It can be populated later. -->
2522
<!-- Keep it as a single line. Examples: -->
2623

.github/ISSUE_TEMPLATE/discussion.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
---
2-
name: Discussion
3-
about: Start a discussion for Dapr
4-
title: ''
5-
labels: kind/discussion
6-
assignees: ''
2+
name: Discussion about: Start a discussion for Dapr title: ''
3+
labels: kind/discussion assignees: ''
74

85
---

.github/ISSUE_TEMPLATE/feature_request.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
---
2-
name: Feature Request
3-
about: Create a Feature Request for Dapr
4-
title: ''
5-
labels: kind/enhancement
6-
assignees: ''
2+
name: Feature Request about: Create a Feature Request for Dapr title: ''
3+
labels: kind/enhancement assignees: ''
74

85
---
6+
97
## Describe the feature
108

119
## Release Note
10+
1211
<!-- How should this new feature be announced in our release notes? It can be populated later. -->
1312
<!-- Keep it as a single line. Examples: -->
1413

.github/ISSUE_TEMPLATE/proposal.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
---
2-
name: Proposal
3-
about: Create a proposal for Dapr
4-
title: ''
5-
labels: kind/proposal
6-
assignees: ''
2+
name: Proposal about: Create a proposal for Dapr title: ''
3+
labels: kind/proposal assignees: ''
74

85
---
6+
97
## Describe the proposal

.github/ISSUE_TEMPLATE/question.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
---
2-
name: Question
3-
about: Ask a question about Dapr
4-
title: ''
5-
labels: kind/question
6-
assignees: ''
2+
name: Question about: Ask a question about Dapr title: ''
3+
labels: kind/question assignees: ''
74

85
---
6+
97
## Ask your question here

.github/pull_request_template.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ _Please explain the changes you've made_
44

55
## Issue reference
66

7-
We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.
7+
We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to
8+
implementation.
89

910
Please reference the issue this PR will close: #_[issue number]_
1011

.github/workflows/php.yml

+29-29
Original file line numberDiff line numberDiff line change
@@ -11,35 +11,35 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v2
15-
- uses: shivammathur/[email protected]
16-
with:
17-
php-version: 8.0
18-
extensions: xdebug
19-
- name: Validate composer.json and composer.lock
20-
run: composer validate
21-
22-
- name: Cache Composer packages
23-
id: composer-cache
24-
uses: actions/cache@v2
25-
with:
26-
path: vendor
27-
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
28-
restore-keys: |
29-
${{ runner.os }}-php-
30-
31-
- name: Install dependencies
32-
if: steps.composer-cache.outputs.cache-hit != 'true'
33-
run: composer install --prefer-dist --no-progress --no-suggest
34-
35-
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
36-
# Docs: https://getcomposer.org/doc/articles/scripts.md
37-
38-
- name: Run test suite
39-
run: composer run-script test
40-
41-
- name: upload coverage
42-
run: bash <(curl -s https://codecov.io/bash)
14+
- uses: actions/checkout@v2
15+
- uses: shivammathur/[email protected]
16+
with:
17+
php-version: 8.0
18+
extensions: xdebug
19+
- name: Validate composer.json and composer.lock
20+
run: composer validate
21+
22+
- name: Cache Composer packages
23+
id: composer-cache
24+
uses: actions/cache@v2
25+
with:
26+
path: vendor
27+
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
28+
restore-keys: |
29+
${{ runner.os }}-php-
30+
31+
- name: Install dependencies
32+
if: steps.composer-cache.outputs.cache-hit != 'true'
33+
run: composer install --prefer-dist --no-progress --no-suggest
34+
35+
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
36+
# Docs: https://getcomposer.org/doc/articles/scripts.md
37+
38+
- name: Run test suite
39+
run: composer run-script test
40+
41+
- name: upload coverage
42+
run: bash <(curl -s https://codecov.io/bash)
4343
lint:
4444
runs-on: ubuntu-latest
4545

components/pubsub.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
spec:
66
type: pubsub.redis
77
metadata:
8-
- name: redisHost
9-
value: localhost:6379
10-
- name: redisPassword
11-
value: ""
8+
- name: redisHost
9+
value: localhost:6379
10+
- name: redisPassword
11+
value: ""

components/statestore.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ metadata:
55
spec:
66
type: state.redis
77
metadata:
8-
- name: redisHost
9-
value: localhost:6379
10-
- name: redisPassword
11-
value: ""
12-
- name: actorStateStore
13-
value: "true"
8+
- name: redisHost
9+
value: localhost:6379
10+
- name: redisPassword
11+
value: ""
12+
- name: actorStateStore
13+
value: "true"

composer.json

+10-4
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,19 @@
1515
"ext-mbstring": "*",
1616
"ext-curl": "*",
1717
"psr/log": "^1.1",
18-
"nette/php-generator": "^3.5"
18+
"nette/php-generator": "^3.5",
19+
"php-di/php-di": "^6.3",
20+
"monolog/monolog": "^2.2",
21+
"nikic/fast-route": "^1.3",
22+
"nyholm/psr7": "^1.3",
23+
"nyholm/psr7-server": "^1.0",
24+
"php-di/invoker": "^2.3",
25+
"laminas/laminas-httphandlerrunner": "^1.3"
1926
},
2027
"require-dev": {
2128
"ext-xdebug": "*",
2229
"vimeo/psalm": "^4.3",
23-
"phpunit/phpunit": "^9",
24-
"monolog/monolog": "^2.2"
30+
"phpunit/phpunit": "^9"
2531
},
2632
"autoload": {
2733
"psr-4": {
@@ -33,7 +39,7 @@
3339
"test": "./vendor/bin/phpunit --testdox tests --coverage-clover coverage.xml tests --whitelist src",
3440
"start": [
3541
"PHP_CLI_SERVER_WORKERS=100 dapr run --components-path components -a dev -p 9502 -- php -S 0.0.0.0:9502 -t src"
36-
],
42+
],
3743
"dapr-init": [
3844
"dapr init --runtime-version 1.0.0-rc.3"
3945
],

0 commit comments

Comments
 (0)