From 7b4a7b6e403963d3a04b70ab7e131baeddbb1d4a Mon Sep 17 00:00:00 2001 From: Quentin Garchery Date: Tue, 11 Jul 2023 18:22:49 +0200 Subject: [PATCH] test: add hardhat ci --- .github/workflows/hardhat.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/hardhat.yml diff --git a/.github/workflows/hardhat.yml b/.github/workflows/hardhat.yml new file mode 100644 index 000000000..8a6157ffe --- /dev/null +++ b/.github/workflows/hardhat.yml @@ -0,0 +1,34 @@ +name: Hardhat + +on: + push: + branches: + - main + pull_request: + workflow_dispatch: + +jobs: + yarn-test: + strategy: + fail-fast: true + + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Install node + uses: actions/setup-node@v3 + with: + node-version: 18 + cache: yarn + + - name: Install dependencies + run: yarn install --frozen-lockfile + + - name: Install Foundry + uses: foundry-rs/foundry-toolchain@v1 + + - name: Run Hardhat tests + run: yarn test