From d88f5df0a66be2c137b5f69dfdf84fdccf139194 Mon Sep 17 00:00:00 2001 From: Florent Mathieu Date: Mon, 10 Jun 2024 22:55:29 -1000 Subject: [PATCH] ci: make test dependent on build step --- .github/workflows/ci.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 08892373f1..ffb4e7d7c0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -67,6 +67,7 @@ jobs: run: npm run lint:ci test: + needs: [build] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -80,6 +81,12 @@ jobs: - name: Install Dependencies run: npm ci --ignore-scripts + - name: Download dist artifacts + uses: actions/download-artifact@v4 + with: + name: dist-artifact + path: packages + - name: Test run: npm run test:ci @@ -90,7 +97,7 @@ jobs: COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} deploy: - needs: [test, build-demo] + needs: [build-demo, lint, test] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -118,7 +125,7 @@ jobs: NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} publish: - needs: [test, build] + needs: [build, lint, test] runs-on: ubuntu-latest # if: github.ref == 'refs/heads/main' steps: