Skip to content

Initial commit

Initial commit #1

Workflow file for this run

name: Test
on: [push]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.14.0]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Cache node_modules
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
- run: npm install
- run: cp config.sample.ts config.ts
- run: npx hardhat compile
- run: npx hardhat test
coverage:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 14.14.0 ]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Cache node_modules
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
- run: npm install
- run: cp config.sample.ts config.ts
- run: npx hardhat compile
- run: npm run coverage