mirror of
https://github.com/Noratrieb/haesli.git
synced 2026-01-16 20:55:03 +01:00
github actions doesn't have nightly and I can't be bothered
This commit is contained in:
parent
52f733fdfe
commit
4f5f9d6513
2 changed files with 3 additions and 5 deletions
|
|
@ -3,16 +3,15 @@ use anyhow::ensure;
|
||||||
use std::process::Command;
|
use std::process::Command;
|
||||||
|
|
||||||
pub fn main() -> anyhow::Result<()> {
|
pub fn main() -> anyhow::Result<()> {
|
||||||
println!("$ cargo +nightly fmt --check");
|
println!("$ cargo fmt --check");
|
||||||
let status = Command::new("cargo")
|
let status = Command::new("cargo")
|
||||||
.arg("+nightly")
|
|
||||||
.arg("fmt")
|
.arg("fmt")
|
||||||
.arg("--check")
|
.arg("--check")
|
||||||
.current_dir(project_root())
|
.current_dir(project_root())
|
||||||
.status()?;
|
.status()?;
|
||||||
ensure!(
|
ensure!(
|
||||||
status.success(),
|
status.success(),
|
||||||
"`cargo +nightly fmt --check` did not exit successfully"
|
"`cargo fmt --check` did not exit successfully"
|
||||||
);
|
);
|
||||||
|
|
||||||
println!("$ yarn");
|
println!("$ yarn");
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,8 @@ use anyhow::ensure;
|
||||||
use std::process::Command;
|
use std::process::Command;
|
||||||
|
|
||||||
pub fn main() -> anyhow::Result<()> {
|
pub fn main() -> anyhow::Result<()> {
|
||||||
println!("$ cargo +nightly fmt");
|
println!("$ cargo fmt");
|
||||||
let status = Command::new("cargo")
|
let status = Command::new("cargo")
|
||||||
.arg("+nightly")
|
|
||||||
.arg("fmt")
|
.arg("fmt")
|
||||||
.current_dir(project_root())
|
.current_dir(project_root())
|
||||||
.status()?;
|
.status()?;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue