Skip to content

Commit 23ce0c8

Browse files
committed
clean
1 parent 8a3ed90 commit 23ce0c8

3 files changed

Lines changed: 5 additions & 89 deletions

File tree

src/presets.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ pub struct Makefile {}
4444
#[template(path = ".github/workflows/ci.yaml", escape = "none")]
4545
pub struct GhCI {}
4646

47-
#[derive(Template)]
48-
#[template(path = "base/ci.yaml", escape = "none")]
49-
pub struct GhCIBase {}
50-
5147
#[derive(Template)]
5248
#[template(path = ".ci/prettier.json", escape = "none")]
5349
pub struct Prettier {}
@@ -152,7 +148,7 @@ pub fn base(name: &str, create: bool, _lang: &Language) -> String {
152148
let _ = fs::create_dir_all(format!("{}/.github/workflows", prefix));
153149

154150
// Render common files
155-
GhCIBase {}.write(&prefix, ".github/workflows/ci.yaml");
151+
GhCI {}.write(&prefix, ".github/workflows/ci.yaml");
156152
GitIgnore {}.write(&prefix, ".gitignore");
157153
Makefile {}.write(&prefix, "Makefile");
158154
PreCommitConfigBase {}.write(&prefix, ".pre-commit-config.yaml");

templates/.github/workflows/ci.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: CI
33

44
on:
55
pull_request: # Start the job on all PRs
6+
push:
7+
branches:
8+
- master
9+
- main
610

711
jobs:
812
precommit:

templates/base/ci.yaml

Lines changed: 0 additions & 84 deletions
This file was deleted.

0 commit comments

Comments
 (0)