From a7f422956cf2bc8205fd291fa16b66582e29bae7 Mon Sep 17 00:00:00 2001 From: "fryorcraken.eth" Date: Mon, 8 Aug 2022 12:50:34 +1000 Subject: [PATCH] ci: build before test, only test if present --- .github/workflows/ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1a37cd8..4adf665 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,6 +40,10 @@ jobs: run: pnpm install --frozen-lockfile working-directory: ${{ matrix.example }} - - name: test - run: pnpm run test + - name: build + run: pnpm run build + working-directory: ${{ matrix.example }} + + - name: test + run: pnpm --if-present test working-directory: ${{ matrix.example }}