From 7e35d1d336345939d947519f8d171c36b6c0ff6e Mon Sep 17 00:00:00 2001 From: PacificYield <173040337+PacificYield@users.noreply.github.com> Date: Wed, 8 Jan 2025 10:25:01 +0100 Subject: [PATCH] ci: workflow --- .github/workflows/test.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ea14a3ee..9e5ad41a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,13 +12,21 @@ jobs: matrix: node-version: [20.x] steps: + - name: Checkout - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 + - name: Install Foundry + uses: foundry-rs/foundry-toolchain@v1 + with: + version: stable - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 with: node-version: ${{ matrix.node-version }} - run: cp ./contracts/.env.example ./contracts/.env - run: npm --prefix ./contracts ci --include=optional + - name: Prettier check - run: npm --prefix ./contracts run prettier:check - - name: "npm CI test" + - name: "Run JS/TS tests" run: npm --prefix ./contracts run test:mock + - name: "Run forge tests" + - run: "cd contracts && forge test"