Skip to content

Fix test issue and bump package version #489

Fix test issue and bump package version

Fix test issue and bump package version #489

name: run linter and tests
on:
push:
branches-ignore:
- master
- develop
paths:
- '**.ts'
- '**.sol'
- '**.yml'
- '**.json'
jobs:
start:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup node.js
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: Determine npm cache directory
id: npm-cache
run: echo "::set-output name=dir::$(npm config get cache)"
- name: Restore npm cache
uses: actions/cache@v2
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: |
npm i
env:
CI: true
- name: Run linter
run: npm run lint
- name: Run tests
run: npm run test -- --report-gas
- name: Dry run build
run: npm run build