CI: Ensure browser tests are up-to-date (#5396)

This commit is contained in:
Erik Demaine 2022-01-25 09:40:48 -05:00 committed by GitHub
parent f557c0579b
commit 6fd58ef11c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View File

@ -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

View File

@ -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