File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 46
46
- type : node
47
47
version : 18.x
48
48
- type : node
49
+ version : 20.x
50
+ - type : bun
49
51
runs-on : ubuntu-latest
50
52
timeout-minutes : 3
51
53
steps :
66
68
uses : actions/setup-node@v3
67
69
with :
68
70
node-version : ${{ matrix.environment.version }}
71
+ - name : Use Bun ${{ matrix.environment.version }}
72
+ if : matrix.environment.type == 'bun'
73
+ uses : oven-sh/setup-bun@v1
69
74
- name : Install dependencies
70
75
if : matrix.environment.type == 'node'
71
76
run : npm ci
@@ -102,6 +107,15 @@ jobs:
102
107
gen_code ./dist/src/index.js > test.mjs
103
108
node test.mjs | tee /dev/stderr | grep -q true
104
109
;;
110
+ bun)
111
+ # Workaround: https://github.com/oven-sh/bun/issues/1590
112
+ dependencies=`jq -r '.dependencies|to_entries|map("\(.key)@\(.value)")|join(" ")' package.json`
113
+ ( set -x; mkdir ~/tmp-bun && cd "$_" && ls -lah && bun install -p "$dependencies" && rm -rf `pwd`; )
114
+ bun install -p --ignore-scripts
115
+ bun build src/index.ts --target bun > ts-postgres.js
116
+ gen_code ./ts-postgres.js > test.mjs
117
+ bun test.mjs | tee /dev/stderr | grep -q true
118
+ ;;
105
119
esac
106
120
env :
107
121
ENVIRONMENT : ${{ matrix.environment.type }}
You can’t perform that action at this time.
0 commit comments