From 9ec92ed845a78fb0dcb9c01de745dbcdc9e07a0c Mon Sep 17 00:00:00 2001 From: tommyrharper Date: Wed, 22 Nov 2023 18:48:09 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20Add=20hardhat=20test=20to=20ci?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) 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