diff --git a/.github/workflows/curate.yml b/.github/workflows/curate.yml index 953e4f139dc1..9acb7fa3e222 100644 --- a/.github/workflows/curate.yml +++ b/.github/workflows/curate.yml @@ -34,10 +34,12 @@ jobs: # the curated branch fetch-depth: 0 - - name: Prepare curated and packages data - # Note that "ci" runs the "prepare" script + - name: Install dependencies run: npm ci + - name: Prepare curated and packages data + run: npm run curate + - name: Test curated and packages data run: npm run test diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4d8e23a3f1fb..1ed0a616ed7b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,7 +10,11 @@ jobs: - uses: actions/setup-node@v2 with: node-version: '14' - - run: npm ci - - run: npm test + - name: Install dependencies + run: npm ci + - name: Prepare curated and packages data + run: npm run curate + - name: Test curated and packages data + run: npm test env: FORCE_COLOR: 3 diff --git a/package.json b/package.json index 20a8b0fed0ef..cd7cd9f17c6e 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ }, "scripts": { "create-patch": "node tools/create-patch.js", - "prepare": "node tools/prepare-curated.js ed curated && node tools/prepare-packages.js curated packages", + "curate": "node tools/prepare-curated.js ed curated && node tools/prepare-packages.js curated packages", "test": "mocha --recursive", "test-css": "mocha --recursive test/css", "test-elements": "mocha --recursive test/elements",