forked from crossbario/autobahn-js
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 849 Bytes
/
main.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
name: Autobahn JS CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
unittest:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '10', '12' ]
name: Node ${{ matrix.node }} run
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
# Run this a bit early in the CI, so we don't have to "sleep".
- name: Run crossbar
run: docker run -d -v $PWD/.crossbar:/node -p 8080:8080 -p 8090:8090 -u $UID crossbario/crossbar --cbdir /node
- name: Install dependencies
run: |
sudo apt update
sudo npm install -g nodeunit
sudo pip3 install --no-cache-dir -U scons boto taschenmesser
- name: Run tests
run: cd packages/autobahn && npm install && npm test