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