From f7e7f548499eff8d2df0872d1340ddcdfa028c45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 13 Apr 2022 18:51:16 +0200 Subject: chore: use lock file for tooling scripts (#14253) This commit adds lock file for maintenance scripts in "tools/" directory. The lock file is stored in "tools/deno.lock.json". --- .github/workflows/ci.yml | 6 +++++- .github/workflows/wpt_epoch.yml | 11 ++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4faad19f8..26bf1ace8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -436,9 +436,11 @@ jobs: run: | "$DENO_BIN" run --allow-env --allow-net --allow-read --allow-run \ --allow-write --unstable \ + --lock=tools/deno.lock.json \ ./tools/wpt.ts setup "$DENO_BIN" run --allow-env --allow-net --allow-read --allow-run \ --allow-write --unstable \ + --lock=tools/deno.lock.json \ ./tools/wpt.ts run --quiet --binary="$DENO_BIN" - name: Run web platform tests (release) @@ -450,9 +452,11 @@ jobs: run: | "$DENO_BIN" run --allow-env --allow-net --allow-read --allow-run \ --allow-write --unstable \ + --lock=tools/deno.lock.json \ ./tools/wpt.ts setup "$DENO_BIN" run --allow-env --allow-net --allow-read --allow-run \ --allow-write --unstable \ + --lock=tools/deno.lock.json \ ./tools/wpt.ts run --quiet --release \ --binary="$DENO_BIN" \ --json=wpt.json \ @@ -486,7 +490,7 @@ jobs: WPT_FYI_PW: ${{ secrets.WPT_FYI_PW }} GITHUB_TOKEN: ${{ secrets.DENOBOT_PAT }} run: | - ./target/release/deno run --allow-all \ + ./target/release/deno run --allow-all --lock=tools/deno.lock.json \ ./tools/upload_wptfyi.js $(git rev-parse HEAD) --ghstatus - name: Run benchmarks diff --git a/.github/workflows/wpt_epoch.yml b/.github/workflows/wpt_epoch.yml index a4b3f0712..24d573f73 100644 --- a/.github/workflows/wpt_epoch.yml +++ b/.github/workflows/wpt_epoch.yml @@ -67,12 +67,17 @@ jobs: - name: Run web platform tests shell: bash run: | - deno run --unstable --allow-write --allow-read --allow-net --allow-env --allow-run ./tools/wpt.ts setup - deno run --unstable --allow-write --allow-read --allow-net --allow-env --allow-run ./tools/wpt.ts run --binary=$(which deno) --quiet --release --json=wpt.json --wptreport=wptreport.json || true + deno run --unstable --allow-write --allow-read --allow-net \ + --allow-env --allow-run --lock=tools/deno.lock.json \ + ./tools/wpt.ts setup + deno run --unstable --allow-write --allow-read --allow-net \ + --allow-env --allow-run --lock=tools/deno.lock.json \ + ./tools/wpt.ts run \ + --binary=$(which deno) --quiet --release --json=wpt.json --wptreport=wptreport.json || true - name: Upload wpt results to wpt.fyi env: WPT_FYI_USER: deno WPT_FYI_PW: ${{ secrets.WPT_FYI_PW }} run: | - deno run -A ./tools/upload_wptfyi.js wptreport.json --from-raw-file + deno run -A --lock=tools/deno.lock.json ./tools/upload_wptfyi.js wptreport.json --from-raw-file -- cgit v1.2.3