@@ -52,19 +52,18 @@ jobs:
52
52
uses : actions/checkout@v3
53
53
54
54
- name : Install stable toolchain
55
- uses : dtolnay/rust-toolchain@stable
56
- with :
57
- components : clippy, rustfmt
58
- targets : x86_64-unknown-linux-musl,aarch64-unknown-linux-musl
55
+ run : |
56
+ rustup target add x86_64-unknown-linux-musl
57
+ rustup target add aarch64-unknown-linux-musl
59
58
60
- - uses : korandoru/setup-zig@v1
61
- with :
62
- zig-version : 0.11.0
59
+ - name : Install cargo lambda
60
+ run : pip3 install cargo-lambda
63
61
64
62
- name : Configure cache
65
63
uses :
mozilla-actions/[email protected]
66
64
67
- - uses : taiki-e/install-action@nextest
65
+ - name : Install cargo-nextest
66
+ run : cargo install cargo-nextest --locked
68
67
69
68
- name : linting
70
69
run : |
@@ -88,26 +87,18 @@ jobs:
88
87
- uses : aws-actions/setup-sam@v2
89
88
90
89
- name : Install stable toolchain
91
- uses : dtolnay/rust-toolchain@stable
92
- with :
93
- targets : x86_64-unknown-linux-musl, aarch64-unknown-linux-musl
90
+ run : |
91
+ rustup target add x86_64-unknown-linux-musl
92
+ rustup target add aarch64-unknown-linux-musl
94
93
95
- - uses : korandoru/setup-zig@v1
96
- with :
97
- zig-version : 0.11.0
94
+ - name : Install cargo lambda
95
+ run : pip3 install cargo-lambda
98
96
99
97
- name : Configure cache
100
98
uses :
mozilla-actions/[email protected]
101
99
102
- - uses : taiki-e/install-action@nextest
103
-
104
- - name : Install Cargo Lambda
105
-
106
- with :
107
- repo : cargo-lambda/cargo-lambda
108
- tag : v1.0.1
109
- platform : linux
110
- arch : x86_64
100
+ - name : Install cargo-nextest
101
+ run : cargo install cargo-nextest --locked
111
102
112
103
- name : Add cargo pkg version to env vars
113
104
run : |
@@ -119,7 +110,7 @@ jobs:
119
110
- name : Tar files
120
111
run : tar -cvf build-x86_64.tar build-x86_64
121
112
122
- - uses : actions/upload-artifact@v3
113
+ - uses : actions/upload-artifact@v4
123
114
with :
124
115
name : aws-sam-build-x86_64
125
116
path : build-x86_64.tar
@@ -130,7 +121,7 @@ jobs:
130
121
- name : Tar files
131
122
run : tar -cvf build-arm64.tar build-arm64
132
123
133
- - uses : actions/upload-artifact@v3
124
+ - uses : actions/upload-artifact@v4
134
125
with :
135
126
name : aws-sam-build-arm64
136
127
path : build-arm64.tar
@@ -179,7 +170,7 @@ jobs:
179
170
--region ${BETA_REGION} \
180
171
--output-template-file packaged-beta-x86_64.yaml
181
172
182
- - uses : actions/upload-artifact@v3
173
+ - uses : actions/upload-artifact@v4
183
174
with :
184
175
name : packaged-beta-x86_64.yaml
185
176
path : packaged-beta-x86_64.yaml
@@ -201,7 +192,7 @@ jobs:
201
192
--region ${BETA_REGION} \
202
193
--output-template-file packaged-beta-arm64.yaml
203
194
204
- - uses : actions/upload-artifact@v3
195
+ - uses : actions/upload-artifact@v4
205
196
with :
206
197
name : packaged-beta-arm64.yaml
207
198
path : packaged-beta-arm64.yaml
@@ -294,19 +285,17 @@ jobs:
294
285
runs-on : ubuntu-20.04
295
286
steps :
296
287
- name : Install stable toolchain
297
- uses : dtolnay/rust-toolchain@stable
298
- with :
299
- components : clippy, rustfmt
300
- targets : x86_64-unknown-linux-musl
288
+ run : |
289
+ rustup target add x86_64-unknown-linux-musl
301
290
302
- - uses : korandoru/setup-zig@v1
303
- with :
304
- zig-version : 0.11.0
291
+ - name : Install cargo lambda
292
+ run : pip3 install cargo-lambda
305
293
306
294
- name : Configure cache
307
295
uses :
mozilla-actions/[email protected]
308
296
309
- - uses : taiki-e/install-action@nextest
297
+ - name : Install cargo-nextest
298
+ run : cargo install cargo-nextest --locked
310
299
311
300
- uses : actions/checkout@v3
312
301
@@ -344,12 +333,12 @@ jobs:
344
333
--no-fail-on-empty-changeset \
345
334
--role-arn ${BETA_CLOUDFORMATION_EXECUTION_ROLE}
346
335
347
- - uses : dkershner6/aws- ssm-getparameters-action@v1
348
- with :
349
- parameterPairs : " /lambda-web-adapter/e2e/httpbin/zip/rest-api-endpoint = HTTPBIN_ZIP_REST_ENDPOINT,
350
- /lambda-web-adapter/e2e/httpbin/zip/http-api-endpoint = HTTPBIN_ZIP_HTTP_ENDPOINT,
351
- /lambda-web-adapter/e2e/httpbin/zip/alb-endpoint = HTTPBIN_ZIP_ALB_ENDPOINT,
352
- /lambda-web-adapter/e2e/httpbin/zip/function-url = HTTPBIN_ZIP_FURL_ENDPOINT "
336
+ - name : retrive ssm parameters
337
+ run : |
338
+ export HTTPBIN_ZIP_REST_ENDPOINT=$(aws ssm get-parameter --name "/lambda-web-adapter/e2e/httpbin/zip/rest-api-endpoint" --query "Parameter.Value" --output text)
339
+ export HTTPBIN_ZIP_HTTP_ENDPOINT=$(aws ssm get-parameter --name " /lambda-web-adapter/e2e/httpbin/zip/http-api-endpoint" --query "Parameter.Value" --output text)
340
+ export HTTPBIN_ZIP_ALB_ENDPOINT=$(aws ssm get-parameter --name " /lambda-web-adapter/e2e/httpbin/zip/alb-endpoint" --query "Parameter.Value" --output text)
341
+ export HTTPBIN_ZIP_FURL_ENDPOINT=$(aws ssm get-parameter --name " /lambda-web-adapter/e2e/httpbin/zip/function-url" --query "Parameter.Value" --output text)
353
342
354
343
- name : run e2e tests
355
344
run : |
@@ -365,19 +354,17 @@ jobs:
365
354
runs-on : ubuntu-20.04
366
355
steps :
367
356
- name : Install stable toolchain
368
- uses : dtolnay/rust-toolchain@stable
369
- with :
370
- components : clippy, rustfmt
371
- targets : x86_64-unknown-linux-musl
357
+ run : |
358
+ rustup target add x86_64-unknown-linux-musl
372
359
373
- - uses : korandoru/setup-zig@v1
374
- with :
375
- zig-version : 0.11.0
360
+ - name : Install cargo lambda
361
+ run : pip3 install cargo-lambda
376
362
377
363
- name : Configure cache
378
364
uses :
mozilla-actions/[email protected]
379
365
380
- - uses : taiki-e/install-action@nextest
366
+ - name : Install cargo-nextest
367
+ run : cargo install cargo-nextest --locked
381
368
382
369
- uses : actions/checkout@v3
383
370
@@ -416,12 +403,12 @@ jobs:
416
403
--no-fail-on-empty-changeset \
417
404
--role-arn ${BETA_CLOUDFORMATION_EXECUTION_ROLE}
418
405
419
- - uses : dkershner6/aws- ssm-getparameters-action@v1
420
- with :
421
- parameterPairs : " /lambda-web-adapter/e2e/httpbin/oci/rest-api-endpoint = HTTPBIN_OCI_REST_ENDPOINT,
422
- /lambda-web-adapter/e2e/httpbin/oci/http-api-endpoint = HTTPBIN_OCI_HTTP_ENDPOINT,
423
- /lambda-web-adapter/e2e/httpbin/oci/alb-endpoint = HTTPBIN_OCI_ALB_ENDPOINT,
424
- /lambda-web-adapter/e2e/httpbin/oci/function-url = HTTPBIN_OCI_FURL_ENDPOINT "
406
+ - name : retrive ssm parameters
407
+ run : |
408
+ export HTTPBIN_OCI_REST_ENDPOINT=$(aws ssm get-parameter --name "/lambda-web-adapter/e2e/httpbin/oci/rest-api-endpoint" --query "Parameter.Value" --output text)
409
+ export HTTPBIN_OCI_HTTP_ENDPOINT=$(aws ssm get-parameter --name " /lambda-web-adapter/e2e/httpbin/oci/http-api-endpoint" --query "Parameter.Value" --output text)
410
+ export HTTPBIN_OCI_ALB_ENDPOINT=$(aws ssm get-parameter --name " /lambda-web-adapter/e2e/httpbin/oci/alb-endpoint" --query "Parameter.Value" --output text)
411
+ export HTTPBIN_OCI_FURL_ENDPOINT=$(aws ssm get-parameter --name " /lambda-web-adapter/e2e/httpbin/oci/function-url" --query "Parameter.Value" --output text)
425
412
426
413
- name : run e2e tests
427
414
run : |
@@ -522,7 +509,7 @@ jobs:
522
509
--region ${{ matrix.region }} \
523
510
--output-template-file packaged-gamma-x86_64-${{ matrix.region }}.yaml
524
511
525
- - uses : actions/upload-artifact@v3
512
+ - uses : actions/upload-artifact@v4
526
513
with :
527
514
name : packaged-gamma-x86_64-${{ matrix.region }}.yaml
528
515
path : packaged-gamma-x86_64-${{ matrix.region }}.yaml
@@ -544,7 +531,7 @@ jobs:
544
531
--region ${{ matrix.region }} \
545
532
--output-template-file packaged-gamma-arm64-${{ matrix.region }}.yaml
546
533
547
- - uses : actions/upload-artifact@v3
534
+ - uses : actions/upload-artifact@v4
548
535
with :
549
536
name : packaged-gamma-arm64-${{ matrix.region }}.yaml
550
537
path : packaged-gamma-arm64-${{ matrix.region }}.yaml
@@ -595,7 +582,7 @@ jobs:
595
582
--region ${{ matrix.region }} \
596
583
--output-template-file packaged-prod-x86_64-${{ matrix.region }}.yaml
597
584
598
- - uses : actions/upload-artifact@v3
585
+ - uses : actions/upload-artifact@v4
599
586
with :
600
587
name : packaged-prod-x86_64-${{ matrix.region }}.yaml
601
588
path : packaged-prod-x86_64-${{ matrix.region }}.yaml
@@ -617,7 +604,7 @@ jobs:
617
604
--region ${{ matrix.region }} \
618
605
--output-template-file packaged-prod-arm64-${{ matrix.region }}.yaml
619
606
620
- - uses : actions/upload-artifact@v3
607
+ - uses : actions/upload-artifact@v4
621
608
with :
622
609
name : packaged-prod-arm64-${{ matrix.region }}.yaml
623
610
path : packaged-prod-arm64-${{ matrix.region }}.yaml
@@ -670,7 +657,7 @@ jobs:
670
657
--region ${{ matrix.region }} \
671
658
--output-template-file packaged-china-gamma-x86_64-${{ matrix.region }}.yaml
672
659
673
- - uses : actions/upload-artifact@v3
660
+ - uses : actions/upload-artifact@v4
674
661
with :
675
662
name : packaged-china-gamma-x86_64-${{ matrix.region }}.yaml
676
663
path : packaged-china-gamma-x86_64-${{ matrix.region }}.yaml
@@ -692,7 +679,7 @@ jobs:
692
679
--region ${{ matrix.region }} \
693
680
--output-template-file packaged-china-gamma-arm64-${{ matrix.region }}.yaml
694
681
695
- - uses : actions/upload-artifact@v3
682
+ - uses : actions/upload-artifact@v4
696
683
with :
697
684
name : packaged-china-gamma-arm64-${{ matrix.region }}.yaml
698
685
path : packaged-china-gamma-arm64-${{ matrix.region }}.yaml
@@ -746,7 +733,7 @@ jobs:
746
733
--region ${{ matrix.region }} \
747
734
--output-template-file packaged-china-prod-x86_64-${{ matrix.region }}.yaml
748
735
749
- - uses : actions/upload-artifact@v3
736
+ - uses : actions/upload-artifact@v4
750
737
with :
751
738
name : packaged-china-prod-x86_64-${{ matrix.region }}.yaml
752
739
path : packaged-china-prod-x86_64-${{ matrix.region }}.yaml
@@ -768,7 +755,7 @@ jobs:
768
755
--region ${{ matrix.region }} \
769
756
--output-template-file packaged-china-prod-arm64-${{ matrix.region }}.yaml
770
757
771
- - uses : actions/upload-artifact@v3
758
+ - uses : actions/upload-artifact@v4
772
759
with :
773
760
name : packaged-china-prod-arm64-${{ matrix.region }}.yaml
774
761
path : packaged-china-prod-arm64-${{ matrix.region }}.yaml
0 commit comments