build: use workflows for bumping versions and cargo publishing on the CI (#13995)

This commit is contained in:
David Sherret 2022-03-30 16:37:00 -04:00 committed by GitHub
parent f61b2c0b11
commit 5cab3e7dba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 306 additions and 74 deletions

View file

@ -1155,6 +1155,7 @@ fn legacy_main_resolve(
#[cfg(test)]
mod tests {
use super::*;
use crate::compat::STD_URL_STR;
fn testdir(name: &str) -> PathBuf {
let c = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
@ -1233,8 +1234,10 @@ mod tests {
fn builtin_http() {
let cwd = testdir("basic");
let main = Url::from_file_path(cwd.join("main.js")).unwrap();
let expected =
Url::parse("https://deno.land/std@0.132.0/node/http.ts").unwrap();
let expected = Url::parse(STD_URL_STR)
.unwrap()
.join("node/http.ts")
.unwrap();
let actual = node_resolve("http", main.as_str(), &cwd).unwrap();
assert!(matches!(actual, ResolveResponse::Esm(_)));

View file

@ -20,7 +20,7 @@ pub use esm_resolver::NodeEsmResolver;
// each release, a better mechanism is preferable, but it's a quick and dirty
// solution to avoid printing `X-Deno-Warning` headers when the compat layer is
// downloaded
static STD_URL_STR: &str = "https://deno.land/std@0.132.0/";
pub(crate) static STD_URL_STR: &str = "https://deno.land/std@0.132.0/";
static SUPPORTED_MODULES: &[&str] = &[
"assert",