-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fetch live test262/Wasm results instead of relying on a triggered build
The website currently only updates when the libjs-website repository is updated. That is, it is not updated when new test results are published to the libjs-data repository. Instead of setting up inter-repository GH Actions hooks, just pull fresh data from libjs-data when loading the website.
- Loading branch information
Showing
10 changed files
with
12 additions
and
68 deletions.
There are no files selected for viewing
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +0,0 @@ | ||
repl/libjs.js | ||
repl/libjs.wasm | ||
test262/data | ||
wasm/data | ||
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,9 +1,9 @@ | ||
const fetchData = (url) => { | ||
const headers = new Headers(); | ||
headers.append("pragma", "no-cache"); | ||
headers.append("cache-control", "no-cache"); | ||
return fetch(new Request(url), { | ||
const LIBJS_DATA_URL = | ||
"https://raw.githubusercontent.com/SerenityOS/libjs-data/master"; | ||
|
||
const fetchData = (path) => { | ||
return fetch(`${LIBJS_DATA_URL}/${path}`, { | ||
method: "GET", | ||
headers, | ||
cache: "no-cache", | ||
}); | ||
}; |
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