Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,18 @@ jobs:
- name: Bundle docs-search client
run: node ./bin/bundle.js bundle -p docs-search-client-halogen

- name: Setup Dev Drive for tests
if: runner.os == 'Windows'
uses: samypr100/setup-dev-drive@v3
with:
drive-size: 10GB
workspace-copy: true
env-mapping: |
TEMP,{{ DEV_DRIVE }}/tmp
TMP,{{ DEV_DRIVE }}/tmp

- name: Run tests
working-directory: ${{ runner.os == 'Windows' && env.DEV_DRIVE_WORKSPACE || '.' }}
run: node --no-warnings=ExperimentalWarning ./bin/bundle.js test

- name: Check formatting (Linux only)
Expand Down
15 changes: 7 additions & 8 deletions docs-search/index/test/Docs/Search/Main.purs
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@ import Test.Spec.Runner.Node (runSpecAndExitProcess')
import Test.Spec.Runner.Node.Config as Config
import Test.TypeQuery as TypeQuery

testConfig :: Config.TestRunConfig
testConfig = Config.defaultConfig
{ timeout = Just (Milliseconds 5_000.0)
}

main :: Effect Unit
main = do
config <- Config.fromCommandLine' testConfig Config.commandLineOptionParsers
runSpecAndExitProcess' config [ consoleReporter ] mainTest
main =
runSpecAndExitProcess'
{ defaultConfig: Config.defaultConfig { timeout = Just (Milliseconds 5_000.0) }
, parseCLIOptions: true
}
[ consoleReporter ]
mainTest

mainTest :: Spec Unit
mainTest = do
Expand Down
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"main": "bin/bundle.js",
"scripts": {
"version": "sed -i'' -e \"s|version:.*|version: $npm_package_version|g\" {spago,bin/spago,core/spago}.yaml && git add {spago,bin/spago,core/spago}.yaml",
"format": "purs-tidy format-in-place core src bin docs-search",
"format:check": "purs-tidy check core src bin docs-search",
"format": "purs-tidy format-in-place core src bin docs-search test",
"format:check": "purs-tidy check core src bin docs-search test",
"fix-bundle": "node -e \"require('fs').writeFileSync('bin/bundle.js',require('fs').readFileSync('bin/bundle.js','utf8').replace('#!/usr/bin/env node','#!/usr/bin/env -S node --no-warnings=ExperimentalWarning'))\"",
"bundle": "spago bundle -p spago-bin && npm run fix-bundle",
"prepublishOnly": "spago build && ./bin/index.dev.js bundle -p spago-bin && npm run fix-bundle && ./bin/index.dev.js bundle -p docs-search-client-halogen",
Expand Down
Loading
Loading