Skip to content

Commit

Permalink
fix: add names to default Rust workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharmath committed Nov 8, 2024
1 parent a49ab27 commit 8027f4f
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions workspace/gh-workflow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,8 @@ Then you can start creating GitHub Actions in your [build.rs](https://github.com
use rust_gh_workflows::*;

fn main() {
// Create a workflow
let workflow = Workflow::new("CI")
.permissions(Permissions::read())
.on(Event::default().push(Push::default().branch("main"))
.add_job(
"build",
Job::new("Build and Test")
.add_step(Step::checkout())
.add_step(Step::setup_rust().add_toolchain(Toolchain::Stable))
.add_step(Step::cargo("test", vec!["--all-features", "--workspace"]))
)
.unwrap();
// Create a basic workflow
let workflow = Workflow::setup_rust();

// Generate the ci.yml
workflow.generate().unwrap();
Expand All @@ -68,7 +58,7 @@ Then you can start creating GitHub Actions in your [build.rs](https://github.com

- [ ] Support for Automated Cargo Releases
- [ ] Improve Type Safety of Nightly Builds
- [ ] Add Rust Docs for the API
- [ ] Updates Rust Docs using Github's official documentation for the API

## 💡 Why Rust?

Expand Down

0 comments on commit 8027f4f

Please sign in to comment.