name: build on: push: branches: ['*'] tags: ['v[0-9]+.[0-9]+.[0-9]+'] pull_request: jobs: build: runs-on: ubuntu-latest env: ETHERSCAN_KEY: ${{ secrets.ETHERSCAN_KEY }} INFURA_KEY: ${{ secrets.INFURA_KEY }} steps: - name: Checkout uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 14 - run: yarn install - run: yarn hardhat compile - run: yarn lint - run: yarn hardhat test