Skip to content

Commit

Permalink
Merge pull request #39 from NavAbility/25Q1/test/setup
Browse files Browse the repository at this point in the history
start CI setup
  • Loading branch information
dehann authored Jan 11, 2025
2 parents 1270043 + 4c88570 commit 2e128a7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI

on:
push:
branches: [ "main" ]
branches: [ "develop" ]
pull_request:
branches: [ "main" ]
branches: [ "develop" ]

env:
CARGO_TERM_COLOR: always
Expand All @@ -16,7 +16,11 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Build wasm
run: cargo build -F wasm
- name: Build tokio
run: cargo build -F tokio
- name: Run tests
run: cargo test --verbose
run: cargo test -F tokio
env:
NAVABILITY_USERLABEL: "[email protected]"
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# NavAbilitySDK.rs

[![CI](https://github.com/NavAbility/NavAbilitySDK.rs/actions/workflows/ci.yml/badge.svg)](https://github.com/NavAbility/NavAbilitySDK.rs/actions/workflows/ci.yml)

Under development
10 changes: 5 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1545,13 +1545,13 @@ mod tests {

#[test]
fn test_get_robots() {
let nva_userlabel: String =
std::env::var("NAVABILITY_USERLABEL").expect("Missing NAVABILITY_USERLABEL env var");
let nva_userlabel: String = "[email protected]".to_owned();
// std::env::var("NAVABILITY_USERLABEL").expect("Missing NAVABILITY_USERLABEL env var");

let nva_api_token: String =
std::env::var("NAVABILITY_API_TOKEN").expect("Missing NAVABILITY_API_TOKEN env var");
let nva_api_token: String = "".to_owned();
// std::env::var("NAVABILITY_API_TOKEN").expect("Missing NAVABILITY_API_TOKEN env var");

let api_url: &str = "https://api.d1.navability.io/graphql";
let api_url: &str = "https://api.navability.io/graphql";
let client = NavAbilityClient::new(&api_url.to_string(), &nva_userlabel, &nva_api_token);
println!("client: {:?}", client);

Expand Down

0 comments on commit 2e128a7

Please sign in to comment.