Skip to content

update:package

update:package #203

Workflow file for this run

name: Lint & Test
on:
pull_request:
branches: "*"
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
cache: "yarn"
node-version: ${{ matrix.node-version }}
- name: Cache node_modules
uses: actions/cache@v2
id: cache_node_modules
with:
# check diff of package.json and yarn.lock
key: ${{ runner.os }}-build-node_modules-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/package.json') }}
path: "**/node_modules"
- name: Install dependencies
if: steps.cache_node_modules.outputs.cache-hit != 'true'
run: yarn install
- name: Lint
run: yarn lint
- name: Test
run: yarn test
env:
PROVIDER_URL: https://goerli.infura.io/v3/${{ secrets.INFURA_KEY }}