-
Notifications
You must be signed in to change notification settings - Fork 231
44 lines (37 loc) · 1.1 KB
/
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
37
38
39
40
41
42
43
44
name: Autobahn JS CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
unittest:
env:
CB_IMAGE: crossbario/crossbar:cpy-slim-amd64-22.7.1.dev1
runs-on: ubuntu-latest
strategy:
matrix:
# https://de.wikipedia.org/wiki/Node.js#Versionen
node: ['14', '18', '19']
name: Node ${{ matrix.node }} run
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
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 --rm --entrypoint=/usr/local/bin/crossbar $CB_IMAGE version
docker run -d -v $PWD/.crossbar:/node -p 8080:8080 -p 8090:8090 -u $UID --entrypoint=/usr/local/bin/crossbar $CB_IMAGE start --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
make test