2021-05-11 21:01:44 +00:00
|
|
|
name: Run tests
|
2020-12-22 08:08:44 +00:00
|
|
|
|
|
|
|
defaults:
|
2021-05-11 21:01:44 +00:00
|
|
|
run:
|
|
|
|
working-directory: .
|
2020-12-22 08:08:44 +00:00
|
|
|
|
|
|
|
on:
|
2021-05-11 21:01:44 +00:00
|
|
|
push:
|
2020-12-22 08:08:44 +00:00
|
|
|
|
|
|
|
jobs:
|
2021-05-11 21:01:44 +00:00
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
node-version: [14.x, 15.x]
|
|
|
|
node-env: ['', ':node']
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: ~/.npm
|
|
|
|
key: ${{ runner.os }}-v1-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-v1-node-${{ matrix.node-version }}
|
|
|
|
|
|
|
|
- name: Setup Node.js ${{ matrix.node-version }}
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
|
|
|
|
- name: Run container with Fluence node
|
|
|
|
run: docker run -d --rm -e RUST_LOG="info" -p 1210:1210 -p 4310:4310 fluencelabs/fluence -t 1210 -w 4310 -k gKdiCSUr1TFGFEgu2t8Ch1XEUsrN5A2UfBLjSZvfci9SPR3NvZpACfcpPGC3eY4zma1pk7UvYv5zb1VjvPHwCjj --local
|
|
|
|
|
|
|
|
- run: npm install
|
2021-08-24 15:37:20 +00:00
|
|
|
- run: sleep 15
|
2021-05-11 21:01:44 +00:00
|
|
|
- run: npm run test${{ matrix.node-env }}:all
|
|
|
|
env:
|
|
|
|
CI: true
|