Compare commits

..

2 commits

Author SHA1 Message Date
622e144986 feat(tui): (experimental) tui option
All checks were successful
Rust / build (push) Successful in 6m27s
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
Release Please / Release-plz (push) Successful in 50s
ci/woodpecker/cron/cron-docker-builder Pipeline was successful
ci/woodpecker/cron/push-next Pipeline was successful
ci/woodpecker/cron/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 10:01:35 +01:00
0632225752 build: test all feature combinations
All checks were successful
Rust / build (push) Successful in 5m22s
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
Release Please / Release-plz (push) Successful in 1m13s
2024-08-12 10:01:32 +01:00
5 changed files with 10 additions and 9 deletions

View file

@ -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 hack fmt --feature-powerset --all -- --check args: cargo fmt --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 clippy --feature-powerset args: cargo hack --feature-powerset clippy
- 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 build --feature-powerset args: cargo hack --feature-powerset build
- 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 test --feature-powerset args: cargo hack --feature-powerset test

View file

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

View file

@ -7,6 +7,7 @@ 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();
@ -15,6 +16,7 @@ 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();

View file

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

View file

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