ci: Migrate CI from Azure Pipelines to GitHub Actions (#233)

Migrated CI from Azure Pipelines to GitHub Actions.
Until the release process is figured out in Actions, we'll stick to using Azure pipelines for releases.
This commit is contained in:
Matan Kushner
2019-09-04 19:13:53 -04:00
committed by GitHub
parent 68754208c1
commit e66d7bae1c
15 changed files with 108 additions and 234 deletions
+2 -2
View File
@@ -90,13 +90,13 @@ fn test_truncate_length(
expected_name: &str,
truncation_symbol: &str,
) -> io::Result<()> {
return test_truncate_length_with_config(
test_truncate_length_with_config(
branch_name,
truncate_length,
expected_name,
truncation_symbol,
"",
);
)
}
fn test_truncate_length_with_config(
+7 -7
View File
@@ -31,7 +31,7 @@ fn folder_with_go_file() -> io::Result<()> {
.output()?;
let actual = String::from_utf8(output.stdout).unwrap();
let expected = format!("via {} ", Color::Cyan.bold().paint("🐹 v1.10"));
let expected = format!("via {} ", Color::Cyan.bold().paint("🐹 v1.12.1"));
assert_eq!(expected, actual);
Ok(())
}
@@ -48,7 +48,7 @@ fn folder_with_go_mod() -> io::Result<()> {
.output()?;
let actual = String::from_utf8(output.stdout).unwrap();
let expected = format!("via {} ", Color::Cyan.bold().paint("🐹 v1.10"));
let expected = format!("via {} ", Color::Cyan.bold().paint("🐹 v1.12.1"));
assert_eq!(expected, actual);
Ok(())
}
@@ -65,7 +65,7 @@ fn folder_with_go_sum() -> io::Result<()> {
.output()?;
let actual = String::from_utf8(output.stdout).unwrap();
let expected = format!("via {} ", Color::Cyan.bold().paint("🐹 v1.10"));
let expected = format!("via {} ", Color::Cyan.bold().paint("🐹 v1.12.1"));
assert_eq!(expected, actual);
Ok(())
}
@@ -83,7 +83,7 @@ fn folder_with_godeps() -> io::Result<()> {
.output()?;
let actual = String::from_utf8(output.stdout).unwrap();
let expected = format!("via {} ", Color::Cyan.bold().paint("🐹 v1.10"));
let expected = format!("via {} ", Color::Cyan.bold().paint("🐹 v1.12.1"));
assert_eq!(expected, actual);
Ok(())
}
@@ -100,7 +100,7 @@ fn folder_with_glide_yaml() -> io::Result<()> {
.output()?;
let actual = String::from_utf8(output.stdout).unwrap();
let expected = format!("via {} ", Color::Cyan.bold().paint("🐹 v1.10"));
let expected = format!("via {} ", Color::Cyan.bold().paint("🐹 v1.12.1"));
assert_eq!(expected, actual);
Ok(())
}
@@ -117,7 +117,7 @@ fn folder_with_gopkg_yml() -> io::Result<()> {
.output()?;
let actual = String::from_utf8(output.stdout).unwrap();
let expected = format!("via {} ", Color::Cyan.bold().paint("🐹 v1.10"));
let expected = format!("via {} ", Color::Cyan.bold().paint("🐹 v1.12.1"));
assert_eq!(expected, actual);
Ok(())
}
@@ -134,7 +134,7 @@ fn folder_with_gopkg_lock() -> io::Result<()> {
.output()?;
let actual = String::from_utf8(output.stdout).unwrap();
let expected = format!("via {} ", Color::Cyan.bold().paint("🐹 v1.10"));
let expected = format!("via {} ", Color::Cyan.bold().paint("🐹 v1.12.1"));
assert_eq!(expected, actual);
Ok(())
}
-3
View File
@@ -1,8 +1,5 @@
use ansi_term::Color;
use std::fs;
use std::io;
use std::path::Path;
use tempfile::TempDir;
use crate::common::{self, TestCommand};
-40
View File
@@ -4,7 +4,6 @@ use std::io;
use ansi_term::Color;
use crate::common;
use crate::common::TestCommand;
#[test]
#[ignore]
@@ -110,42 +109,3 @@ fn with_virtual_env() -> io::Result<()> {
assert_eq!(expected, actual);
Ok(())
}
#[test]
#[ignore]
fn with_pyenv() -> io::Result<()> {
let dir = common::new_tempdir()?;
File::create(dir.path().join("main.py"))?;
let output = common::render_module("python")
.use_config(toml::toml! {
[python]
pyenv_version_name = true
})
.env("VIRTUAL_ENV", "/foo/bar/my_venv")
.arg("--path")
.arg(dir.path())
.output()?;
let actual = String::from_utf8(output.stdout).unwrap();
let expected = format!("via {} ", Color::Yellow.bold().paint("🐍 pyenv system"));
assert_eq!(expected, actual);
Ok(())
}
#[test]
#[ignore]
fn with_pyenv_no_output() -> io::Result<()> {
let dir = common::new_tempdir()?;
File::create(dir.path().join("main.py"))?;
let output = common::render_module("python")
.use_config(toml::toml! {
[python]
pyenv_version_name = true
})
.env("PATH", "")
.arg("--path")
.arg(dir.path())
.output()?;
let actual = String::from_utf8(output.stdout).unwrap();
assert_eq!("", actual);
Ok(())
}
+3 -3
View File
@@ -1,5 +1,5 @@
use ansi_term::Color;
use std::fs::{self, File};
use std::fs::File;
use std::io;
use crate::common;
@@ -31,7 +31,7 @@ fn folder_with_gemfile() -> io::Result<()> {
.output()?;
let actual = String::from_utf8(output.stdout).unwrap();
let expected = format!("via {} ", Color::Red.bold().paint("💎 v2.5.5"));
let expected = format!("via {} ", Color::Red.bold().paint("💎 v2.6.3"));
assert_eq!(expected, actual);
Ok(())
}
@@ -48,7 +48,7 @@ fn folder_with_rb_file() -> io::Result<()> {
.output()?;
let actual = String::from_utf8(output.stdout).unwrap();
let expected = format!("via {} ", Color::Red.bold().paint("💎 v2.5.5"));
let expected = format!("via {} ", Color::Red.bold().paint("💎 v2.6.3"));
assert_eq!(expected, actual);
Ok(())
}