mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
Added githubActions features to handle github tests; set git fetch test under github actions exclude pattern
This commit is contained in:
2
.github/workflows/macos.yml
vendored
2
.github/workflows/macos.yml
vendored
@@ -14,6 +14,6 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --verbose
|
run: cargo build --verbose
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: cargo test --verbose -- --test-threads 1
|
run: cargo test --verbose --features githubActions -- --test-threads 1
|
||||||
- name: Clippy
|
- name: Clippy
|
||||||
run: cargo clippy
|
run: cargo clippy
|
||||||
|
|||||||
2
.github/workflows/windows.yml
vendored
2
.github/workflows/windows.yml
vendored
@@ -14,6 +14,6 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --verbose
|
run: cargo build --verbose
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: cargo test --verbose -- --test-threads 1
|
run: cargo test --verbose --features githubActions -- --test-threads 1
|
||||||
- name: Clippy
|
- name: Clippy
|
||||||
run: cargo clippy
|
run: cargo clippy
|
||||||
|
|||||||
@@ -47,6 +47,10 @@ users = "0.11.0"
|
|||||||
[target.'cfg(any(target_os = "windows", target_os = "macos"))'.dependencies]
|
[target.'cfg(any(target_os = "windows", target_os = "macos"))'.dependencies]
|
||||||
keyring = "0.10.1"
|
keyring = "0.10.1"
|
||||||
|
|
||||||
|
# Features
|
||||||
|
[features]
|
||||||
|
githubActions = [] # used to run particular on github actions
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
name = "termscp"
|
name = "termscp"
|
||||||
path = "src/main.rs"
|
path = "src/main.rs"
|
||||||
|
|||||||
@@ -78,6 +78,7 @@ mod tests {
|
|||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg(not(all(target_os = "macos", feature = "githubActions")))]
|
||||||
fn test_utils_git_check_for_updates() {
|
fn test_utils_git_check_for_updates() {
|
||||||
assert!(check_for_updates("100.0.0").ok().unwrap().is_none());
|
assert!(check_for_updates("100.0.0").ok().unwrap().is_none());
|
||||||
assert!(check_for_updates("0.0.1").ok().unwrap().is_some());
|
assert!(check_for_updates("0.0.1").ok().unwrap().is_some());
|
||||||
|
|||||||
Reference in New Issue
Block a user