build: ignore typechain generated files #102
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Integration | |
on: | |
pull_request: | |
branches: | |
- main | |
- release/* | |
push: | |
branches: | |
- main | |
- release/* | |
jobs: | |
build: | |
name: Build | |
timeout-minutes: 20 | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ matrix.experimental }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-20.04 | |
experimental: [false] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Node 16.13.0 - x64 on ${{ matrix.os }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install dependencies | |
run: npm ci | |
- name: Run lint and unit tests | |
run: | | |
npm run lint | |
npm run build | |
npm run test | |
npm run cov |