diff --git a/compiler-cli/src/new.rs b/compiler-cli/src/new.rs index 827931370..f815bbd11 100644 --- a/compiler-cli/src/new.rs +++ b/compiler-cli/src/new.rs @@ -39,7 +39,6 @@ pub struct Creator { root: Utf8PathBuf, src: Utf8PathBuf, test: Utf8PathBuf, - #[allow(dead_code)] github: Utf8PathBuf, workflows: Utf8PathBuf, external: Utf8PathBuf, @@ -87,7 +86,7 @@ impl FileToCreate { pub fn contents(&self, creator: &Creator) -> Option { let project_name = &creator.project_name; let skip_git = creator.options.skip_git; - let skip_github = true; // creator.options.skip_github; + let skip_github = creator.options.skip_github; match self { Self::Readme => Some(format!( @@ -522,9 +521,8 @@ impl Creator { crate::fs::mkdir(&self.external)?; if !self.options.skip_git && !self.options.skip_github { - // Currently disabled - // crate::fs::mkdir(&self.github)?; - // crate::fs::mkdir(&self.workflows)?; + crate::fs::mkdir(&self.github)?; + crate::fs::mkdir(&self.workflows)?; } if self.options.skip_git { diff --git a/compiler-cli/src/new/tests.rs b/compiler-cli/src/new/tests.rs index 8738cc936..859c5ce36 100644 --- a/compiler-cli/src/new/tests.rs +++ b/compiler-cli/src/new/tests.rs @@ -27,8 +27,7 @@ fn new() { assert!(path.join("gleam.toml").exists()); assert!(path.join("src/my_project.gleam").exists()); assert!(path.join("test/my_project_test.gleam").exists()); - // TODO: Create Glistix workflow file - // assert!(path.join(".github/workflows/test.yml").exists()); + assert!(path.join(".github/workflows/test.yml").exists()); // Don't add external/stdlib to testing as they depend on // the network