apache / openwhisk-runtime-swift

Apache OpenWhisk Runtime Swift supports Apache OpenWhisk functions written in Swift
https://openwhisk.apache.org/
Apache License 2.0
26 stars 23 forks source link

Support array result include sequence action #150

Closed ningyougang closed 2 years ago

ningyougang commented 2 years ago

Depend on below prs:

ningyougang commented 2 years ago

The steps of test support array result for sequence action in swift(4.2, 5.1, 5.3)

[root@nccddev130026 ~]# cat ~/sort.swift func main(args: Any) -> Any { // don't do real sort operation, just return the array direclty return args }

* Create actions and invoke it
```shell
wsk -i action create /whisk.system/utils/split-swift --kind swift:5.3 ~/split.swift
wsk -i action create /whisk.system/utils/sort-swift --kind swift:5.3 ~/sort.swift
wsk -i action create mySequence-swift --sequence /whisk.system/utils/split-swift,/whisk.system/utils/sort-swift
wsk -i action invoke --result mySequence-swift -r -v