diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b401cad..6e5da33 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,16 +7,6 @@ on: name: Build jobs: - check: - name: Check - runs-on: ubuntu-latest - steps: - - name: Checkout sources - uses: actions/checkout@v4 - - - name: Run cargo check - run: cargo check - test: name: Test Suite runs-on: ubuntu-latest @@ -44,7 +34,7 @@ jobs: path: target/nextest/ci/*.xml reporter: java-junit max-annotations: 50 - name: Unit Tests + name: Test Suite Summary lints: name: Lints runs-on: ubuntu-latest @@ -65,8 +55,6 @@ jobs: CARGO_TERM_COLOR: always steps: - uses: actions/checkout@v4 - - name: Update Rust - run: rustup update stable - uses: taiki-e/install-action@cargo-llvm-cov - uses: taiki-e/install-action@nextest - name: Generate code coverage @@ -76,12 +64,3 @@ jobs: with: files: lcov.info token: ${{ secrets.CODECOV_TOKEN }} -# this is needed by zgosalvez/github-actions-report-lcov - - name: Setup LCOV - uses: hrishikesh-kadam/setup-lcov@v1 - - name: Report code coverage - uses: zgosalvez/github-actions-report-lcov@v4 - with: - coverage-files: lcov.info - artifact-name: code-coverage-report - update-comment: true diff --git a/src/mitaffald/mod.rs b/src/mitaffald/mod.rs index a8cdcf5..5c51a27 100644 --- a/src/mitaffald/mod.rs +++ b/src/mitaffald/mod.rs @@ -8,7 +8,7 @@ use url::Url; use self::settings::{AddressId, TraditionalAddress}; pub async fn get_containers(config: AffaldVarmeConfig) -> Result, String> { - let response = fetch_remote_response(config).await?; + let response = fetch_collection_plan(config).await?; if !response.status().is_success() { return Err(format!("Unexpected status code: {:?}", response.status())); @@ -53,7 +53,7 @@ struct PlannedLoad { fractions: Vec, } -async fn fetch_remote_response(config: AffaldVarmeConfig) -> Result { +async fn fetch_collection_plan(config: AffaldVarmeConfig) -> Result { let remote_url = build_remote_url(config).await?; reqwest::get(remote_url) @@ -105,7 +105,9 @@ async fn lookup_address(address: TraditionalAddress) -> Resultvec![