Add example to CI

This commit is contained in:
Franck 2022-01-03 12:28:58 +11:00
parent 52f9aa779c
commit 5f6b3752cf
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 19 additions and 1 deletions

View File

@ -17,4 +17,22 @@ jobs:
- run: yarn lint
- run: yarn build
- run: yarn test
examples:
runs-on: ubuntu-latest
strategy:
matrix:
example: [ mainnet-poll ]
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 14.x
- run: yarn install --frozen-lockfile
working-directory: examples/${{ matrix.example }}
- run: yarn lint
working-directory: examples/${{ matrix.example }}
- run: yarn build
working-directory: examples/${{ matrix.example }}
- run: yarn test
working-directory: examples/${{ matrix.example }}