Skip to content

Merge pull request #18 from Kwenta/fix-encoding-hardhat-2 #177

Merge pull request #18 from Kwenta/fix-encoding-hardhat-2

Merge pull request #18 from Kwenta/fix-encoding-hardhat-2 #177

Workflow file for this run

name: test
on: [push]
env:
FOUNDRY_PROFILE: ci
jobs:
check:
strategy:
fail-fast: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Build Project
run: |
forge --version
forge build --sizes
id: build
- name: Test Project
run: |
forge test --fork-url ${{ secrets.OPTIMISM_GOERLI_RPC_URL }} --etherscan-api-key ${{ secrets.ETHERSCAN_API_KEY }} -vvv
id: test
hardhat_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Check out repository code
uses: actions/checkout@v2
- name: Building on Node.js
uses: actions/setup-node@v2
with:
node-version: '18.12.0'
- name: Update NPM
run: npm install -g [email protected]
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: npm i --no-audit
- name: Execute contract tests
run: npx hardhat test