From 6fd58ef11cb9deeacb64887ce33c40b9fe4e9702 Mon Sep 17 00:00:00 2001 From: Erik Demaine Date: Tue, 25 Jan 2022 09:40:48 -0500 Subject: [PATCH] CI: Ensure browser tests are up-to-date (#5396) --- .github/workflows/continuous-integration.yml | 5 ++--- Cakefile | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 991e3f7d..1d3f19c5 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -30,13 +30,12 @@ jobs: - run: node ./bin/cake build:parser # Build the browser compiler for the headless browser test - run: node ./bin/cake build:browser + # Build test.html, so that test:browser uses the latest tests + - run: node ./bin/cake doc:test # Check that the git diff is clean, to ensure that the updated build output was committed - run: git diff --exit-code - # Build test.html, so that test:browser uses the latest tests - - run: node ./bin/cake doc:test - # Test - run: node ./bin/cake test - run: node ./bin/cake test:browser diff --git a/Cakefile b/Cakefile index 77ea84e4..6349da85 100644 --- a/Cakefile +++ b/Cakefile @@ -310,7 +310,7 @@ buildDocTests = (watch = no) -> # Helpers testsInScriptBlocks = -> output = '' - for filename in fs.readdirSync testsSourceFolder + for filename in fs.readdirSync(testsSourceFolder).sort() if filename.indexOf('.coffee') isnt -1 type = 'coffeescript' else if filename.indexOf('.litcoffee') isnt -1