-
Notifications
You must be signed in to change notification settings - Fork 12
50 lines (42 loc) · 1.17 KB
/
ci.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
45
46
47
48
49
50
name: CI
on:
push:
pull_request:
jobs:
skip_if_running:
name: Skip job if already running
runs-on: ubuntu-latest
outputs:
skip: ${{ steps.check_skip.outputs.should_skip }}
steps:
- uses: fkirc/skip-duplicate-actions@master
id: check_skip
with:
concurrent_skipping: same_content_newer
do_not_skip: '["push", "workflow_dispatch"]'
all_checks:
name: All checks
runs-on: ubuntu-latest
needs: skip_if_running
if: needs.skip_if_running.outputs.skip != 'true'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
- name: Run terminusdb server
run: docker run --detach --publish 127.0.0.1:6363:6363 terminusdb/terminusdb-server:dev && sleep 3
- name: Install, build and test
run: |
npm ci
npm run build
npm run test
npm run test:integration
- name: Lint
run: npm run lint:check
- name: Genrate test coverage report
run: npm run coveralls-after
- name: Update coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}