From bfabb32fc7a8527979e99963282cc711bce98b69 Mon Sep 17 00:00:00 2001 From: m0ar Date: Thu, 12 Oct 2023 15:04:21 +0200 Subject: [PATCH] Fix CI test workflow --- .github/workflows/pr.yml | 4 +++- scripts/run.mjs | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 8098df6..13886e4 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -7,11 +7,13 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 - - uses: setup-node@v3 + - uses: actions/setup-node@v3 with: node-version-file: ".nvmrc" cache: "npm" cache-dependency-path: "package-lock.json" check-latest: false - run: npm ci + - run: npm run generate + - run: CI=true npm run dev - run: make test diff --git a/scripts/run.mjs b/scripts/run.mjs index 742b330..3da5739 100644 --- a/scripts/run.mjs +++ b/scripts/run.mjs @@ -58,6 +58,7 @@ const start = async () => { events.on('ceramic', async (isRunning) => { if (isRunning) { await bootstrap() + if (process.env.CI) process.exit(); await graphiql() await next() } @@ -83,3 +84,6 @@ process.on("SIGINT", () => { process.on("beforeExit", () => { ceramic.kill(); }); +process.on("exit", () => { + ceramic.kill(); +});