-
Notifications
You must be signed in to change notification settings - Fork 55
44 lines (36 loc) · 979 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: test
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: Setup deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x
# - name: Setup bun
# uses: antongolub/action-setup-bun@v1
# with:
# bun-version: 1.0.1
- name: Install NPM dependencies
run: npm install
- name: Build NPM package
run: deno task build
- name: Start SurrealDB
run: sh ./test/e2e/scripts/docker-restart.sh
- name: Run Deno
run: deno test -A --trace-ops ./test/e2e/deno.js
- name: Run Node
run: node ./test/e2e/node.js
# - name: Run Bun
# run: bun run ./test/e2e/bun.js
- name: Stop SurrealDB
run: sh ./test/e2e/scripts/docker-stop.sh