-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #133 from OxfordAbstracts/fixes-variable-types
- Loading branch information
Showing
42 changed files
with
18,237 additions
and
3,780 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ jobs: | |
|
||
- uses: purescript-contrib/[email protected] | ||
with: | ||
purescript: "0.15.4" | ||
purescript: "0.15.7" | ||
psa: "0.8.2" | ||
spago: "0.20.9" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
import { deepStrictEqual } from 'assert' | ||
import execSh from 'exec-sh'; | ||
const {promise: exec} = execSh; | ||
import { deepStrictEqual } from "assert"; | ||
import execSh from "exec-sh"; | ||
const { promise: exec } = execSh; | ||
|
||
const logs = [] | ||
const logs = []; | ||
|
||
console.log = (log) => { | ||
console.info(log) | ||
logs.push(log) | ||
} | ||
console.info(log); | ||
logs.push(log); | ||
}; | ||
|
||
import serverFn from './server-fn.js' | ||
import gps from './generate-purs-schema.mjs' | ||
import serverFn from "./server-fn.js"; | ||
import gps from "./generate-purs-schema.mjs"; | ||
serverFn(async () => { | ||
try { | ||
await gps() | ||
await exec('npm run build', { stdio: 'pipe', stderr: 'pipe' }) | ||
const { main } = await import('./output/Main/index.js') | ||
await gps(); | ||
await exec("npm run build", { stdio: "pipe", stderr: "pipe" }); | ||
const { main } = await import("./output/Main/index.js"); | ||
|
||
main() | ||
main(); | ||
setTimeout(() => { | ||
deepStrictEqual(logs, ['[RED]']) | ||
console.info('tests passed') | ||
process.exit(0) | ||
}, 250) | ||
deepStrictEqual(logs, ["[RED]", "[{ id: (Just 1) },{ id: (Just 2) }]"]); | ||
console.info("tests passed"); | ||
process.exit(0); | ||
}, 250); | ||
} catch (err) { | ||
console.error('test error', err) | ||
process.exit(1) | ||
console.error("test error", err); | ||
process.exit(1); | ||
} | ||
}) | ||
}); | ||
|
||
setTimeout(() => { | ||
console.error('Timeout') | ||
process.exit(1) | ||
}, 60000) | ||
console.error("Timeout"); | ||
process.exit(1); | ||
}, 60000); |
Oops, something went wrong.