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:
|
2022-02-04 19:37:00 +00:00
|
|
|
node-version: [16.x, 17.x]
|
2021-05-11 21:01:44 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
2022-08-24 15:03:06 +00:00
|
|
|
- uses: pnpm/action-setup@v2.2.2
|
2021-05-11 21:01:44 +00:00
|
|
|
with:
|
2022-08-24 15:03:06 +00:00
|
|
|
version: 7
|
2021-05-11 21:01:44 +00:00
|
|
|
|
|
|
|
- name: Setup Node.js ${{ matrix.node-version }}
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
2022-08-24 15:03:06 +00:00
|
|
|
cache: 'pnpm'
|
2021-05-11 21:01:44 +00:00
|
|
|
|
|
|
|
- name: Run container with Fluence node
|
2021-08-27 17:02:55 +00:00
|
|
|
run: |
|
|
|
|
docker pull fluencelabs/fluence
|
|
|
|
docker run -d --rm -e RUST_LOG="info" -p 1210:1210 -p 4310:4310 fluencelabs/fluence -t 1210 -w 4310 -k gKdiCSUr1TFGFEgu2t8Ch1XEUsrN5A2UfBLjSZvfci9SPR3NvZpACfcpPGC3eY4zma1pk7UvYv5zb1VjvPHwCjj --local --aqua-pool-size 2
|
2021-05-11 21:01:44 +00:00
|
|
|
|
2022-08-24 15:03:06 +00:00
|
|
|
- name: Install deps
|
|
|
|
run: pnpm i
|
|
|
|
|
|
|
|
- name: Run tests
|
|
|
|
run: |
|
|
|
|
pnpm -r build
|
|
|
|
pnpm -r test
|
2021-05-11 21:01:44 +00:00
|
|
|
env:
|
|
|
|
CI: true
|