-
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 823 Bytes
/
jest.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
name: Jest Tests
on:
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
name: Run Jest tests
services:
thingsdb:
image: ghcr.io/thingsdb/node:latest
env:
THINGSDB_INIT: 1
THINGSDB_LISTEN_CLIENT_PORT: 9200
THINGSDB_HTTP_STATUS_PORT: 9001
THINGSDB_WS_PORT: 7681
ports:
- 9200:9200
- 9001:9001
- 7681:7681
options: >-
--health-cmd "wget http://localhost:9001/healthy || exit 1"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: latest
- name: npm install
run: npm ci
- name: jest run test
run: npm run test