-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (40 loc) · 1.22 KB
/
node.js.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
51
52
53
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: CI
on:
push:
branches: [ master ]
pull_request:
branches:
- master
- 'maint-**'
- 'feature/**'
jobs:
Tests:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [18]
steps:
- name: Checkout
uses: actions/checkout@v3
- 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 --legacy-peer-deps install
npm run build
- name: Lint
run: npm run lint
- name: Test
run: npm test
- name: Test build
run: npm run build