Skip to content

Commit

Permalink
Revert "cli/new: temporarily disable GitHub workflow"
Browse files Browse the repository at this point in the history
This reverts commit a1cb7b7.
  • Loading branch information
PgBiel committed Apr 26, 2024
1 parent 62269ab commit f6b2dbc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
8 changes: 3 additions & 5 deletions compiler-cli/src/new.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ pub struct Creator {
root: Utf8PathBuf,
src: Utf8PathBuf,
test: Utf8PathBuf,
#[allow(dead_code)]
github: Utf8PathBuf,
workflows: Utf8PathBuf,
external: Utf8PathBuf,
Expand Down Expand Up @@ -87,7 +86,7 @@ impl FileToCreate {
pub fn contents(&self, creator: &Creator) -> Option<String> {
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!(
Expand Down Expand Up @@ -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 {
Expand Down
3 changes: 1 addition & 2 deletions compiler-cli/src/new/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f6b2dbc

Please sign in to comment.