diff --git a/.github/workflows/test-aqua-ipfs-integration.yml b/.github/workflows/test-aqua-ipfs-integration.yml new file mode 100644 index 0000000..f1b37a1 --- /dev/null +++ b/.github/workflows/test-aqua-ipfs-integration.yml @@ -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 diff --git a/.github/workflows/test-js-projects.yml b/.github/workflows/test-js-projects.yml index 63df7ed..93fc35a 100644 --- a/.github/workflows/test-js-projects.yml +++ b/.github/workflows/test-js-projects.yml @@ -42,5 +42,5 @@ jobs: CI: true run: | npm i - npm build - npm test + npm run build + npm run test