-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (34 loc) · 912 Bytes
/
tests.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: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
Tests:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [14.x]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
# Temporary solution: We will remove this after we publish the
# GEO Knowledge Hub dependencies in the NPM Registry.
- name: Start required services
run: |
./docker/builder/start.sh
- name: Install & Build
run: |
echo @geo-knowledge-hub:registry=http://127.0.0.1:4873 > ~/.npmrc
npm install
npm run build
- name: Test
run: npm test
- name: Stop required services
run: |
./docker/builder/finish.sh