From 8bc6a7451ab341fbe4651c6d1f4a87e2f3b768f6 Mon Sep 17 00:00:00 2001 From: nmlinaric Date: Mon, 30 Jan 2023 18:03:03 +0100 Subject: [PATCH] Update GHA - compile contracts and share between jobs --- .github/workflows/test.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cd273810..3f69eed8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,13 +26,20 @@ jobs: node-version: ${{ matrix.node-version }} - name: Install dependencies run: make install-deps + - name: Compile contracts + run: make compile + - name: Store contract artifacts + uses: actions/upload-artifact@v3 + with: + name: contracts-artifacts + path: build - name: Ganache Tests run: | SILENT=true make start-ganache make test coverage: - needs: Test + needs: test name: Coverage runs-on: ubuntu-latest strategy: @@ -45,6 +52,11 @@ jobs: uses: actions/setup-node@v2.5.1 with: node-version: ${{ matrix.node-version }} + - name: Download contracts artifacts + uses: actions/download-artifact@v3 + with: + name: contracts-artifacts + path: build - name: Yarn install run: yarn install --frozen-lockfile - name: Run coverage