@@ -34,12 +34,12 @@ jobs:
34
34
test-e2e :
35
35
runs-on : ubuntu-latest
36
36
env :
37
- GOVER : 1.17
38
- DAPR_CLI_VER : 1.8.0
39
- DAPR_RUNTIME_VER : 1.8 .0
37
+ GOVER : 1.19
38
+ DAPR_CLI_VER : 1.9.1
39
+ DAPR_RUNTIME_VER : 1.9 .0
40
40
DAPR_INSTALL_URL : https://raw.githubusercontent.com/dapr/cli/master/install/install.sh
41
- DAPR_CLI_REF : ' 9472e6d977817243d6da28af3e3ca744414c54e6 ' # TODO, remove once DAPR CLI is upgraded to v1.7
42
- DAPR_REF : ' '
41
+ DAPR_CLI_REF : " "
42
+ DAPR_REF : " "
43
43
NODE_VER : 16.14.0
44
44
services :
45
45
emqx :
@@ -56,84 +56,84 @@ jobs:
56
56
ports :
57
57
- 27017:27017
58
58
steps :
59
- - name : Set up Dapr CLI
60
- run : wget -q ${{ env.DAPR_INSTALL_URL }} -O - | /bin/bash -s ${{ env.DAPR_CLI_VER }}
61
-
62
- - name : Set up Go ${{ env.GOVER }}
63
- if : env.DAPR_REF != '' || env.DAPR_CLI_REF != ''
64
- uses : actions/setup-go@v2
65
- with :
66
- go-version : ${{ env.GOVER }}
67
-
68
- - name : Checkout Dapr CLI repo to custom reference
69
- uses : actions/checkout@v2
70
- if : env.DAPR_CLI_REF != ''
71
- with :
72
- repository : dapr/cli
73
- ref : ${{ env.DAPR_CLI_REF }}
74
- path : cli
75
-
76
- - name : Checkout Dapr runtime repo to custom reference
77
- uses : actions/checkout@v2
78
- if : env.DAPR_REF != ''
79
- with :
80
- repository : dapr/dapr
81
- ref : ${{ env.DAPR_REF }}
82
- path : dapr
83
-
84
- - name : Build and override dapr cli with referenced commit
85
- if : env.DAPR_CLI_REF != ''
86
- run : |
87
- cd cli
88
- make
89
- sudo cp dist/linux_amd64/release/dapr /usr/local/bin/dapr
90
- cd ..
91
-
92
- - name : Initialize Dapr runtime ${{ env.DAPR_RUNTIME_VER }}
93
- run : |
94
- dapr uninstall --all
95
- dapr init --runtime-version ${{ env.DAPR_RUNTIME_VER }}
96
-
97
- - name : Build and override daprd with referenced commit.
98
- if : env.DAPR_REF != ''
99
- run : |
100
- cd dapr
101
- make
102
- mkdir -p $HOME/.dapr/bin/
103
- cp dist/linux_amd64/release/daprd $HOME/.dapr/bin/daprd
104
- cd ..
105
-
106
- - name : Override placement service.
107
- if : env.DAPR_REF != ''
108
- run : |
109
- docker stop dapr_placement
110
- cd dapr
111
- ./dist/linux_amd64/release/placement &
112
-
113
- - name : Checkout JS-SDK
114
- uses : actions/checkout@v2
115
-
116
- # Setup .npmrc file to publish to npm
117
- # https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
118
- - name : NodeJS - Install
119
- uses : actions/setup-node@v2
120
- with :
121
- node-version : ${{ env.NODE_VER }}
122
- registry-url : ' https://registry.npmjs.org'
123
-
124
- - name : Build Package
125
- run : npm run build
126
-
127
- - name : Run E2E tests
128
- id : tests
129
- run : npm run test:e2e:all
130
-
131
- - name : Run E2E test to show successful typescript build
132
- id : typescript-build-test
133
- run : |
134
- cd test/e2e/typescript-build
135
- npm install
136
- dapr run --app-id typescript-build npm run start
137
-
138
- - name : Upload test coverage
139
- uses : codecov/codecov-action@v1
59
+ - name : Set up Dapr CLI
60
+ run : wget -q ${{ env.DAPR_INSTALL_URL }} -O - | /bin/bash -s ${{ env.DAPR_CLI_VER }}
61
+
62
+ - name : Set up Go ${{ env.GOVER }}
63
+ if : env.DAPR_REF != '' || env.DAPR_CLI_REF != ''
64
+ uses : actions/setup-go@v2
65
+ with :
66
+ go-version : ${{ env.GOVER }}
67
+
68
+ - name : Checkout Dapr CLI repo to custom reference
69
+ uses : actions/checkout@v2
70
+ if : env.DAPR_CLI_REF != ''
71
+ with :
72
+ repository : dapr/cli
73
+ ref : ${{ env.DAPR_CLI_REF }}
74
+ path : cli
75
+
76
+ - name : Checkout Dapr runtime repo to custom reference
77
+ uses : actions/checkout@v2
78
+ if : env.DAPR_REF != ''
79
+ with :
80
+ repository : dapr/dapr
81
+ ref : ${{ env.DAPR_REF }}
82
+ path : dapr
83
+
84
+ - name : Build and override dapr cli with referenced commit
85
+ if : env.DAPR_CLI_REF != ''
86
+ run : |
87
+ cd cli
88
+ make
89
+ sudo cp dist/linux_amd64/release/dapr /usr/local/bin/dapr
90
+ cd ..
91
+
92
+ - name : Initialize Dapr runtime ${{ env.DAPR_RUNTIME_VER }}
93
+ run : |
94
+ dapr uninstall --all
95
+ dapr init --runtime-version ${{ env.DAPR_RUNTIME_VER }}
96
+
97
+ - name : Build and override daprd with referenced commit.
98
+ if : env.DAPR_REF != ''
99
+ run : |
100
+ cd dapr
101
+ make
102
+ mkdir -p $HOME/.dapr/bin/
103
+ cp dist/linux_amd64/release/daprd $HOME/.dapr/bin/daprd
104
+ cd ..
105
+
106
+ - name : Override placement service.
107
+ if : env.DAPR_REF != ''
108
+ run : |
109
+ docker stop dapr_placement
110
+ cd dapr
111
+ ./dist/linux_amd64/release/placement &
112
+
113
+ - name : Checkout JS-SDK
114
+ uses : actions/checkout@v2
115
+
116
+ # Setup .npmrc file to publish to npm
117
+ # https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
118
+ - name : NodeJS - Install
119
+ uses : actions/setup-node@v2
120
+ with :
121
+ node-version : ${{ env.NODE_VER }}
122
+ registry-url : " https://registry.npmjs.org"
123
+
124
+ - name : Build Package
125
+ run : npm run build
126
+
127
+ - name : Run E2E tests
128
+ id : tests
129
+ run : npm run test:e2e:all
130
+
131
+ - name : Run E2E test to show successful typescript build
132
+ id : typescript-build-test
133
+ run : |
134
+ cd test/e2e/typescript-build
135
+ npm install
136
+ dapr run --app-id typescript-build npm run start
137
+
138
+ - name : Upload test coverage
139
+ uses : codecov/codecov-action@v1
0 commit comments