diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4ac844df..db738dd1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,3 +31,27 @@ jobs: 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 npm@8.19.2 + - 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: Compile contracts + run: npx hardhat compile + - name: Execute contract tests + run: npx hardhat test