Compare commits
2 commits
76b6eb3903
...
622e144986
Author | SHA1 | Date | |
---|---|---|---|
622e144986 | |||
0632225752 |
5 changed files with 10 additions and 9 deletions
|
@ -20,19 +20,19 @@ jobs:
|
|||
- name: Format
|
||||
uses: https://git.kemitix.net/kemitix/rust@v1.80.1-1
|
||||
with:
|
||||
args: cargo hack fmt --feature-powerset --all -- --check
|
||||
args: cargo fmt --all -- --check
|
||||
|
||||
- name: Clippy
|
||||
uses: https://git.kemitix.net/kemitix/rust@v1.80.1-1
|
||||
with:
|
||||
args: cargo hack clippy --feature-powerset
|
||||
args: cargo hack --feature-powerset clippy
|
||||
|
||||
- name: Build
|
||||
uses: https://git.kemitix.net/kemitix/rust@v1.80.1-1
|
||||
with:
|
||||
args: cargo hack build --feature-powerset
|
||||
args: cargo hack --feature-powerset build
|
||||
|
||||
- name: Test
|
||||
uses: https://git.kemitix.net/kemitix/rust@v1.80.1-1
|
||||
with:
|
||||
args: cargo hack test --feature-powerset
|
||||
args: cargo hack --feature-powerset test
|
||||
|
|
|
@ -22,7 +22,7 @@ impl Forge {
|
|||
ForgeType::ForgeJo => Box::new(ForgeJo::new(repo_details, net)),
|
||||
#[cfg(feature = "github")]
|
||||
ForgeType::GitHub => Box::new(Github::new(repo_details, net)),
|
||||
ForgeType::MockForge => unreachable!(),
|
||||
_ => unreachable!(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ use git_next_core::{
|
|||
GitDir, RepoConfigSource, StoragePathType,
|
||||
};
|
||||
|
||||
#[cfg(feature = "forgejo")]
|
||||
#[test]
|
||||
fn test_forgejo_name() {
|
||||
let net = Network::new_mock();
|
||||
|
@ -15,6 +16,7 @@ fn test_forgejo_name() {
|
|||
assert_eq!(forge.name(), "forgejo");
|
||||
}
|
||||
|
||||
#[cfg(feature = "github")]
|
||||
#[test]
|
||||
fn test_github_name() {
|
||||
let net = Network::new_mock();
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
//
|
||||
mod server_update;
|
||||
mod tick;
|
||||
|
||||
|
|
6
justfile
6
justfile
|
@ -8,9 +8,9 @@ validate-dev-branch:
|
|||
|
||||
mock-ci:
|
||||
cargo fmt --check
|
||||
cargo build
|
||||
cargo test
|
||||
cargo clippy
|
||||
cargo hack --feature-powerset build
|
||||
cargo hack --feature-powerset test
|
||||
cargo hack --feature-powerset clippy
|
||||
|
||||
start-ngrok:
|
||||
#!/usr/bin/env bash
|
||||
|
|
Loading…
Reference in a new issue