Compare commits

..

2 commits

Author SHA1 Message Date
76b6eb3903 feat(tui): (experimental) tui option
All checks were successful
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
When the 'tui' feature is enabled, then server start accepts an optional
--ui parameter. When specified a ratatui ui will display, showing
liveness and a ping update when a valid config is loaded.
2024-08-12 09:45:09 +01:00
c965586537 build: test all feature combinations
Some checks failed
Rust / build (push) Failing after 3s
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
2024-08-12 09:45:09 +01:00
5 changed files with 9 additions and 10 deletions

View file

@ -20,19 +20,19 @@ jobs:
- name: Format
uses: https://git.kemitix.net/kemitix/rust@v1.80.1-1
with:
args: cargo fmt --all -- --check
args: cargo hack fmt --feature-powerset --all -- --check
- name: Clippy
uses: https://git.kemitix.net/kemitix/rust@v1.80.1-1
with:
args: cargo hack --feature-powerset clippy
args: cargo hack clippy --feature-powerset
- name: Build
uses: https://git.kemitix.net/kemitix/rust@v1.80.1-1
with:
args: cargo hack --feature-powerset build
args: cargo hack build --feature-powerset
- name: Test
uses: https://git.kemitix.net/kemitix/rust@v1.80.1-1
with:
args: cargo hack --feature-powerset test
args: cargo hack test --feature-powerset

View file

@ -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)),
_ => unreachable!(),
ForgeType::MockForge => unreachable!(),
}
}
}

View file

@ -7,7 +7,6 @@ use git_next_core::{
GitDir, RepoConfigSource, StoragePathType,
};
#[cfg(feature = "forgejo")]
#[test]
fn test_forgejo_name() {
let net = Network::new_mock();
@ -16,7 +15,6 @@ fn test_forgejo_name() {
assert_eq!(forge.name(), "forgejo");
}
#[cfg(feature = "github")]
#[test]
fn test_github_name() {
let net = Network::new_mock();

View file

@ -1,3 +1,4 @@
//
mod server_update;
mod tick;

View file

@ -8,9 +8,9 @@ validate-dev-branch:
mock-ci:
cargo fmt --check
cargo hack --feature-powerset build
cargo hack --feature-powerset test
cargo hack --feature-powerset clippy
cargo build
cargo test
cargo clippy
start-ngrok:
#!/usr/bin/env bash