-
Notifications
You must be signed in to change notification settings - Fork 56
49 lines (43 loc) · 1.21 KB
/
ci_js.yml
File metadata and controls
49 lines (43 loc) · 1.21 KB
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
45
46
47
48
49
name: JS SDK CI
on:
pull_request:
paths:
- 'sdk/embedbase-js/**'
push:
branches:
- main
- next
- rc
paths:
- 'sdk/embedbase-js/**'
jobs:
test:
name: Test / OS ${{ matrix.os }} / Node ${{ matrix.node }}
strategy:
matrix:
os: [ubuntu-latest]
node: ['16']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Run tests
run: |
npm clean-install
npm run test:coverage
working-directory: sdk/embedbase-js
env:
EMBEDBASE_API_KEY: ${{ secrets.EMBEDBASE_API_KEY }}
BANKRUPT_EMBEDBASE_KEY: ${{ secrets.BANKRUPT_EMBEDBASE_KEY }}
# necessary hack otherwise ci running in parallel create concurrency issues
EMBEDBASE_DATASET: ci_sdk_js_unit_test
EMBEDBASE_TIMEOUT: 120000
# todo coverage
# - name: Upload coverage results to Coveralls
# uses: coverallsapp/github-action@master
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# path-to-lcov: ./test/coverage/lcov.info