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