File tree Expand file tree Collapse file tree 5 files changed +64
-5
lines changed Expand file tree Collapse file tree 5 files changed +64
-5
lines changed Original file line number Diff line number Diff line change @@ -30,13 +30,13 @@ jobs:
30
30
- name : Run tests
31
31
run : ./.tools/run_jvm_tests.sh
32
32
33
- build-ts :
33
+ build-node :
34
34
# prevent from running on forks
35
35
if : github.repository_owner == 'restatedev'
36
36
runs-on : ubuntu-latest
37
37
strategy :
38
38
matrix :
39
- node-version : [19 .x]
39
+ node-version : [20 .x]
40
40
41
41
steps :
42
42
- uses : actions/checkout@v3
50
50
- name : Run tests
51
51
run : ./.tools/run_node_tests.sh
52
52
53
+ build-altjs :
54
+ # prevent from running on forks
55
+ if : github.repository_owner == 'restatedev'
56
+ runs-on : ubuntu-latest
57
+
58
+ steps :
59
+ - uses : actions/checkout@v3
60
+
61
+ # We just need npm from Node
62
+ - name : Setup Node
63
+ uses : actions/setup-node@v3
64
+ with :
65
+ node-version : 20.x
66
+
67
+ - name : Setup Bun
68
+ uses : oven-sh/setup-bun@v1
69
+ with :
70
+ bun-version : latest
71
+
72
+ - name : Setup Deno
73
+ uses : denoland/setup-deno@v1
74
+ with :
75
+ deno-version : v1.x
76
+
77
+ - name : Run tests
78
+ run : ./.tools/run_altjs_tests.sh
79
+
53
80
build-go :
54
81
# prevent from running on forks
55
82
if : github.repository_owner == 'restatedev'
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -eufx -o pipefail
4
+
5
+ SELF_PATH=${BASH_SOURCE[0]:- " $( command -v -- " $0 " ) " }
6
+ PROJECT_ROOT=" $( dirname " $SELF_PATH " ) /.."
7
+
8
+ function bun_install_check() {
9
+ pushd $1
10
+ bun install
11
+ bun run build
12
+ popd
13
+ }
14
+
15
+ function deno_install_check() {
16
+ pushd $1
17
+ deno task build
18
+ popd
19
+ }
20
+
21
+ function wrangler_install_check() {
22
+ pushd $1
23
+ npm install
24
+ npm run build
25
+ npx wrangler deploy --dry-run --outdir dist
26
+ popd
27
+ }
28
+
29
+ wrangler_install_check $PROJECT_ROOT /templates/cloudflare-worker
30
+ bun_install_check $PROJECT_ROOT /templates/bun
31
+ deno_install_check $PROJECT_ROOT /templates/deno
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ npm_install_check $PROJECT_ROOT/basics/basics-typescript
14
14
npm_install_check $PROJECT_ROOT /templates/typescript
15
15
npm_install_check $PROJECT_ROOT /templates/typescript-lambda-cdk
16
16
npm_install_check $PROJECT_ROOT /templates/cloudflare-worker
17
- # npm_install_check $PROJECT_ROOT/templates/bun
18
17
19
18
npm_install_check $PROJECT_ROOT /templates/typescript-testing
20
19
npm --prefix $PROJECT_ROOT /templates/typescript-testing run test
Original file line number Diff line number Diff line change 3
3
"type" : " module" ,
4
4
"version" : " 0.0.1" ,
5
5
"scripts" : {
6
+ "build" : " bun build --target bun --outdir dist src/index.ts" ,
6
7
"dev" : " bun run --watch src/index.ts" ,
7
8
"start" : " bun run src/index.ts" ,
8
9
"format" : " prettier --write \" src/*.+(js|ts|json)\" "
Original file line number Diff line number Diff line change 1
1
{
2
2
"tasks" : {
3
+ "build" : " deno check main.ts" ,
3
4
"dev" : " deno run --allow-net --allow-env --watch main.ts" ,
4
- "start" : " deno run --allow-net --allow-env main.ts"
5
- }
5
+ "start" : " deno run --allow-net --allow-env main.ts" ,
6
+ },
6
7
}
You can’t perform that action at this time.
0 commit comments