Skip to content

chore(deps): bump decode-uri-component from 0.2.0 to 0.2.2 #76

chore(deps): bump decode-uri-component from 0.2.0 to 0.2.2

chore(deps): bump decode-uri-component from 0.2.0 to 0.2.2 #76

Workflow file for this run

name: Check the source code
on:
pull_request:
jobs:
test:
name: Check the source code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
# unable to use yarn in actions/setup-node@v3 https://github.com/actions/setup-node/issues/182#issuecomment-966885975
- name: Install Yarn
run: npm install -g yarn
- uses: actions/setup-node@v3
with:
node-version: '16'
cache: yarn
- name: Setup dotenv
# Test account's fixed private key in hardhat local node
run: |
echo 'PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80' > .env
echo 'STAGING_ALCHEMY_KEY=' >> .env
echo 'PROD_ALCHEMY_KEY=' >> .env
- name: Install packages
run: yarn
- name: Checkout Base Branch
uses: actions/checkout@v3
with:
ref: ${{ github.base_ref }}
clean: false
- name: Check Base Contract Size
run: npx hardhat size-contracts
- name: Checkout Target Branch
uses: actions/checkout@v3
with:
clean: false
- name: Lint
run: yarn lint
- name: Test
run: yarn test
- name: Check Target Contract Size
run: echo "\`\`\`\n $(npx hardhat size-contracts)" > ./comments
- name: Post comments
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
URL: ${{ github.event.pull_request.html_url }}
run:
gh pr comment -F ./comments "${URL}"