mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
build: remove --unstable flags from CI (#25548)
This commit removes usages of deprecated `--unstable` flag from the CI scripts.
This commit is contained in:
parent
41ba7cdade
commit
4af98fa82f
4 changed files with 19 additions and 21 deletions
17
.github/workflows/ci.generate.ts
vendored
17
.github/workflows/ci.generate.ts
vendored
|
@ -649,7 +649,7 @@ const ci = {
|
||||||
name: "test_format.js",
|
name: "test_format.js",
|
||||||
if: "matrix.job == 'lint' && matrix.os == 'linux'",
|
if: "matrix.job == 'lint' && matrix.os == 'linux'",
|
||||||
run:
|
run:
|
||||||
"deno run --unstable --allow-write --allow-read --allow-run --allow-net ./tools/format.js --check",
|
"deno run --allow-write --allow-read --allow-run --allow-net ./tools/format.js --check",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Lint PR title",
|
name: "Lint PR title",
|
||||||
|
@ -664,7 +664,7 @@ const ci = {
|
||||||
name: "lint.js",
|
name: "lint.js",
|
||||||
if: "matrix.job == 'lint'",
|
if: "matrix.job == 'lint'",
|
||||||
run:
|
run:
|
||||||
"deno run --unstable --allow-write --allow-read --allow-run --allow-net ./tools/lint.js",
|
"deno run --allow-write --allow-read --allow-run --allow-net ./tools/lint.js",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "jsdoc_checker.js",
|
name: "jsdoc_checker.js",
|
||||||
|
@ -826,7 +826,7 @@ const ci = {
|
||||||
"!startsWith(github.ref, 'refs/tags/')",
|
"!startsWith(github.ref, 'refs/tags/')",
|
||||||
].join("\n"),
|
].join("\n"),
|
||||||
run:
|
run:
|
||||||
"target/release/deno run -A --unstable --config tests/config/deno.json ext/websocket/autobahn/fuzzingclient.js",
|
"target/release/deno run -A --config tests/config/deno.json ext/websocket/autobahn/fuzzingclient.js",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Test (full, debug)",
|
name: "Test (full, debug)",
|
||||||
|
@ -879,9 +879,9 @@ const ci = {
|
||||||
DENO_BIN: "./target/debug/deno",
|
DENO_BIN: "./target/debug/deno",
|
||||||
},
|
},
|
||||||
run: [
|
run: [
|
||||||
"deno run -A --unstable --lock=tools/deno.lock.json --config tests/config/deno.json\\",
|
"deno run -A --lock=tools/deno.lock.json --config tests/config/deno.json\\",
|
||||||
" ./tests/wpt/wpt.ts setup",
|
" ./tests/wpt/wpt.ts setup",
|
||||||
"deno run -A --unstable --lock=tools/deno.lock.json --config tests/config/deno.json\\",
|
"deno run -A --lock=tools/deno.lock.json --config tests/config/deno.json\\",
|
||||||
' ./tests/wpt/wpt.ts run --quiet --binary="$DENO_BIN"',
|
' ./tests/wpt/wpt.ts run --quiet --binary="$DENO_BIN"',
|
||||||
].join("\n"),
|
].join("\n"),
|
||||||
},
|
},
|
||||||
|
@ -892,9 +892,9 @@ const ci = {
|
||||||
DENO_BIN: "./target/release/deno",
|
DENO_BIN: "./target/release/deno",
|
||||||
},
|
},
|
||||||
run: [
|
run: [
|
||||||
"deno run -A --unstable --lock=tools/deno.lock.json --config tests/config/deno.json\\",
|
"deno run -A --lock=tools/deno.lock.json --config tests/config/deno.json\\",
|
||||||
" ./tests/wpt/wpt.ts setup",
|
" ./tests/wpt/wpt.ts setup",
|
||||||
"deno run -A --unstable --lock=tools/deno.lock.json --config tests/config/deno.json\\",
|
"deno run -A --lock=tools/deno.lock.json --config tests/config/deno.json\\",
|
||||||
" ./tests/wpt/wpt.ts run --quiet --release \\",
|
" ./tests/wpt/wpt.ts run --quiet --release \\",
|
||||||
' --binary="$DENO_BIN" \\',
|
' --binary="$DENO_BIN" \\',
|
||||||
" --json=wpt.json \\",
|
" --json=wpt.json \\",
|
||||||
|
@ -958,8 +958,7 @@ const ci = {
|
||||||
"git clone --depth 1 --branch gh-pages \\",
|
"git clone --depth 1 --branch gh-pages \\",
|
||||||
" https://${DENOBOT_PAT}@github.com/denoland/benchmark_data.git \\",
|
" https://${DENOBOT_PAT}@github.com/denoland/benchmark_data.git \\",
|
||||||
" gh-pages",
|
" gh-pages",
|
||||||
"./target/release/deno run --allow-all --unstable \\",
|
"./target/release/deno run --allow-all ./tools/build_benchmark_jsons.js --release",
|
||||||
" ./tools/build_benchmark_jsons.js --release",
|
|
||||||
"cd gh-pages",
|
"cd gh-pages",
|
||||||
'git config user.email "propelml@gmail.com"',
|
'git config user.email "propelml@gmail.com"',
|
||||||
'git config user.name "denobot"',
|
'git config user.name "denobot"',
|
||||||
|
|
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
|
@ -389,7 +389,7 @@ jobs:
|
||||||
cache-path: ./target
|
cache-path: ./target
|
||||||
- name: test_format.js
|
- name: test_format.js
|
||||||
if: '!(matrix.skip) && (matrix.job == ''lint'' && matrix.os == ''linux'')'
|
if: '!(matrix.skip) && (matrix.job == ''lint'' && matrix.os == ''linux'')'
|
||||||
run: deno run --unstable --allow-write --allow-read --allow-run --allow-net ./tools/format.js --check
|
run: deno run --allow-write --allow-read --allow-run --allow-net ./tools/format.js --check
|
||||||
- name: Lint PR title
|
- name: Lint PR title
|
||||||
if: '!(matrix.skip) && (matrix.job == ''lint'' && github.event_name == ''pull_request'' && matrix.os == ''linux'')'
|
if: '!(matrix.skip) && (matrix.job == ''lint'' && github.event_name == ''pull_request'' && matrix.os == ''linux'')'
|
||||||
env:
|
env:
|
||||||
|
@ -397,7 +397,7 @@ jobs:
|
||||||
run: deno run ./tools/verify_pr_title.js "$PR_TITLE"
|
run: deno run ./tools/verify_pr_title.js "$PR_TITLE"
|
||||||
- name: lint.js
|
- name: lint.js
|
||||||
if: '!(matrix.skip) && (matrix.job == ''lint'')'
|
if: '!(matrix.skip) && (matrix.job == ''lint'')'
|
||||||
run: deno run --unstable --allow-write --allow-read --allow-run --allow-net ./tools/lint.js
|
run: deno run --allow-write --allow-read --allow-run --allow-net ./tools/lint.js
|
||||||
- name: jsdoc_checker.js
|
- name: jsdoc_checker.js
|
||||||
if: '!(matrix.skip) && (matrix.job == ''lint'')'
|
if: '!(matrix.skip) && (matrix.job == ''lint'')'
|
||||||
run: deno run --allow-read --allow-env --allow-sys ./tools/jsdoc_checker.js
|
run: deno run --allow-read --allow-env --allow-sys ./tools/jsdoc_checker.js
|
||||||
|
@ -494,7 +494,7 @@ jobs:
|
||||||
matrix.job == 'test' &&
|
matrix.job == 'test' &&
|
||||||
matrix.profile == 'release' &&
|
matrix.profile == 'release' &&
|
||||||
!startsWith(github.ref, 'refs/tags/'))
|
!startsWith(github.ref, 'refs/tags/'))
|
||||||
run: target/release/deno run -A --unstable --config tests/config/deno.json ext/websocket/autobahn/fuzzingclient.js
|
run: target/release/deno run -A --config tests/config/deno.json ext/websocket/autobahn/fuzzingclient.js
|
||||||
- name: 'Test (full, debug)'
|
- name: 'Test (full, debug)'
|
||||||
if: |-
|
if: |-
|
||||||
!(matrix.skip) && (matrix.job == 'test' &&
|
!(matrix.skip) && (matrix.job == 'test' &&
|
||||||
|
@ -531,18 +531,18 @@ jobs:
|
||||||
env:
|
env:
|
||||||
DENO_BIN: ./target/debug/deno
|
DENO_BIN: ./target/debug/deno
|
||||||
run: |-
|
run: |-
|
||||||
deno run -A --unstable --lock=tools/deno.lock.json --config tests/config/deno.json\
|
deno run -A --lock=tools/deno.lock.json --config tests/config/deno.json\
|
||||||
./tests/wpt/wpt.ts setup
|
./tests/wpt/wpt.ts setup
|
||||||
deno run -A --unstable --lock=tools/deno.lock.json --config tests/config/deno.json\
|
deno run -A --lock=tools/deno.lock.json --config tests/config/deno.json\
|
||||||
./tests/wpt/wpt.ts run --quiet --binary="$DENO_BIN"
|
./tests/wpt/wpt.ts run --quiet --binary="$DENO_BIN"
|
||||||
- name: Run web platform tests (release)
|
- name: Run web platform tests (release)
|
||||||
if: '!(matrix.skip) && (matrix.wpt && matrix.profile == ''release'')'
|
if: '!(matrix.skip) && (matrix.wpt && matrix.profile == ''release'')'
|
||||||
env:
|
env:
|
||||||
DENO_BIN: ./target/release/deno
|
DENO_BIN: ./target/release/deno
|
||||||
run: |-
|
run: |-
|
||||||
deno run -A --unstable --lock=tools/deno.lock.json --config tests/config/deno.json\
|
deno run -A --lock=tools/deno.lock.json --config tests/config/deno.json\
|
||||||
./tests/wpt/wpt.ts setup
|
./tests/wpt/wpt.ts setup
|
||||||
deno run -A --unstable --lock=tools/deno.lock.json --config tests/config/deno.json\
|
deno run -A --lock=tools/deno.lock.json --config tests/config/deno.json\
|
||||||
./tests/wpt/wpt.ts run --quiet --release \
|
./tests/wpt/wpt.ts run --quiet --release \
|
||||||
--binary="$DENO_BIN" \
|
--binary="$DENO_BIN" \
|
||||||
--json=wpt.json \
|
--json=wpt.json \
|
||||||
|
@ -590,8 +590,7 @@ jobs:
|
||||||
git clone --depth 1 --branch gh-pages \
|
git clone --depth 1 --branch gh-pages \
|
||||||
https://${DENOBOT_PAT}@github.com/denoland/benchmark_data.git \
|
https://${DENOBOT_PAT}@github.com/denoland/benchmark_data.git \
|
||||||
gh-pages
|
gh-pages
|
||||||
./target/release/deno run --allow-all --unstable \
|
./target/release/deno run --allow-all ./tools/build_benchmark_jsons.js --release
|
||||||
./tools/build_benchmark_jsons.js --release
|
|
||||||
cd gh-pages
|
cd gh-pages
|
||||||
git config user.email "propelml@gmail.com"
|
git config user.email "propelml@gmail.com"
|
||||||
git config user.name "denobot"
|
git config user.name "denobot"
|
||||||
|
|
4
.github/workflows/wpt_epoch.yml
vendored
4
.github/workflows/wpt_epoch.yml
vendored
|
@ -66,9 +66,9 @@ jobs:
|
||||||
- name: Run web platform tests
|
- name: Run web platform tests
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
deno run --unstable -A --lock=tools/deno.lock.json --config=tests/config/deno.json \
|
deno run -A --lock=tools/deno.lock.json --config=tests/config/deno.json \
|
||||||
./tests/wpt/wpt.ts setup
|
./tests/wpt/wpt.ts setup
|
||||||
deno run --unstable -A --lock=tools/deno.lock.json --config=tests/config/deno.json \
|
deno run -A --lock=tools/deno.lock.json --config=tests/config/deno.json \
|
||||||
./tests/wpt/wpt.ts run \ \
|
./tests/wpt/wpt.ts run \ \
|
||||||
--binary=$(which deno) --quiet --release --no-ignore --json=wpt.json --wptreport=wptreport.json --exit-zero
|
--binary=$(which deno) --quiet --release --no-ignore --json=wpt.json --wptreport=wptreport.json --exit-zero
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ const AUTOBAHN_TESTSUITE_DOCKER =
|
||||||
"crossbario/autobahn-testsuite:0.8.2@sha256:5d4ba3aa7d6ab2fdbf6606f3f4ecbe4b66f205ce1cbc176d6cdf650157e52242";
|
"crossbario/autobahn-testsuite:0.8.2@sha256:5d4ba3aa7d6ab2fdbf6606f3f4ecbe4b66f205ce1cbc176d6cdf650157e52242";
|
||||||
|
|
||||||
const self = Deno.execPath();
|
const self = Deno.execPath();
|
||||||
$`${self} run -A --unstable --config ${pwd}/../../../tests/config/deno.json ${pwd}/autobahn_server.js`
|
$`${self} run -A --config ${pwd}/../../../tests/config/deno.json ${pwd}/autobahn_server.js`
|
||||||
.spawn();
|
.spawn();
|
||||||
|
|
||||||
for (let i = 0; i < 6; i++) {
|
for (let i = 0; i < 6; i++) {
|
||||||
|
|
Loading…
Reference in a new issue