mirror of
https://github.com/denoland/deno.git
synced 2025-08-02 18:12:39 +00:00
build: switch to wpt.fyi prod (#11201)
This commit is contained in:
parent
e9e286a56e
commit
32b9aa5720
3 changed files with 8 additions and 8 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -473,8 +473,8 @@ jobs:
|
||||||
github.repository == 'denoland/deno' &&
|
github.repository == 'denoland/deno' &&
|
||||||
github.ref == 'refs/heads/main'
|
github.ref == 'refs/heads/main'
|
||||||
env:
|
env:
|
||||||
WPT_FYI_STAGING_USER: ${{ secrets.WPT_FYI_STAGING_USER }}
|
WPT_FYI_USER: ${{ secrets.WPT_FYI_USER }}
|
||||||
WPT_FYI_STAGING_PW: ${{ secrets.WPT_FYI_STAGING_PW }}
|
WPT_FYI_PW: ${{ secrets.WPT_FYI_PW }}
|
||||||
GITHUB_TOKEN: ${{ secrets.DENOBOT_PAT }}
|
GITHUB_TOKEN: ${{ secrets.DENOBOT_PAT }}
|
||||||
run: |
|
run: |
|
||||||
./target/release/deno run --allow-all \
|
./target/release/deno run --allow-all \
|
||||||
|
|
4
.github/workflows/wpt_epoch.yml
vendored
4
.github/workflows/wpt_epoch.yml
vendored
|
@ -71,7 +71,7 @@ jobs:
|
||||||
|
|
||||||
- name: Upload wpt results to wpt.fyi
|
- name: Upload wpt results to wpt.fyi
|
||||||
env:
|
env:
|
||||||
WPT_FYI_STAGING_USER: ${{ secrets.WPT_FYI_STAGING_USER }}
|
WPT_FYI_USER: ${{ secrets.WPT_FYI_USER }}
|
||||||
WPT_FYI_STAGING_PW: ${{ secrets.WPT_FYI_STAGING_PW }}
|
WPT_FYI_PW: ${{ secrets.WPT_FYI_PW }}
|
||||||
run: |
|
run: |
|
||||||
deno run -A ./tools/upload_wptfyi.js wptreport.json --from-raw-file
|
deno run -A ./tools/upload_wptfyi.js wptreport.json --from-raw-file
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
|
|
||||||
import { gzip } from "https://deno.land/x/compress@v0.3.8/gzip/mod.ts";
|
import { gzip } from "https://deno.land/x/compress@v0.3.8/gzip/mod.ts";
|
||||||
|
|
||||||
const user = Deno.env.get("WPT_FYI_STAGING_USER");
|
const user = Deno.env.get("WPT_FYI_USER");
|
||||||
const password = Deno.env.get("WPT_FYI_STAGING_PW");
|
const password = Deno.env.get("WPT_FYI_PW");
|
||||||
|
|
||||||
const fromRawFile = Deno.args.includes("--from-raw-file");
|
const fromRawFile = Deno.args.includes("--from-raw-file");
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ if (fromRawFile) {
|
||||||
|
|
||||||
const basicAuthToken = btoa(`${user}:${password}`);
|
const basicAuthToken = btoa(`${user}:${password}`);
|
||||||
|
|
||||||
const resp = await fetch("https://staging.wpt.fyi/api/results/upload", {
|
const resp = await fetch("https://wpt.fyi/api/results/upload", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
body: form,
|
body: form,
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -47,7 +47,7 @@ if (!resp.ok) {
|
||||||
if (!fromRawFile && Deno.args.includes("--ghstatus")) {
|
if (!fromRawFile && Deno.args.includes("--ghstatus")) {
|
||||||
const githubToken = Deno.env.get("GITHUB_TOKEN");
|
const githubToken = Deno.env.get("GITHUB_TOKEN");
|
||||||
const taskId = body.split(" ")[1];
|
const taskId = body.split(" ")[1];
|
||||||
const url = `https://staging.wpt.fyi/results/?run_id=${taskId}`;
|
const url = `https://wpt.fyi/results/?run_id=${taskId}`;
|
||||||
const commit = Deno.args[0];
|
const commit = Deno.args[0];
|
||||||
const resp = await fetch(
|
const resp = await fetch(
|
||||||
`https://api.github.com/repos/denoland/deno/statuses/${commit}`,
|
`https://api.github.com/repos/denoland/deno/statuses/${commit}`,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue