add CI for aqua ipfs integration

This commit is contained in:
Pavel Murygin 2022-02-21 16:28:35 +03:00
parent e0c4631c5e
commit 738c92f541
2 changed files with 40 additions and 2 deletions

View File

@ -0,0 +1,38 @@
name: Run tests for js-based projects
on:
push:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
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 tests
working-directory:
./aqua-examples/aqua-ipfs-integration
env:
CI: true
run: |
npm i
npm run build
bpm run test -w nodejs
bpm run test -w web

View File

@ -42,5 +42,5 @@ jobs:
CI: true CI: true
run: | run: |
npm i npm i
npm build npm run build
npm test npm run test