Skip to content

chore: update cbtc example #71

chore: update cbtc example

chore: update cbtc example #71

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Contracts unit tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
unit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm test
cbtc-unit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
working-directory: ./example/cbtc

Check failure on line 44 in .github/workflows/run-unit-tests.js.yml

View workflow run for this annotation

GitHub Actions / Contracts unit tests

Invalid workflow file

The workflow is not valid. .github/workflows/run-unit-tests.js.yml (Line: 44, Col: 7): Unexpected value 'working-directory'
- run: npm ci
- run: npm test