Skip to content

Commit cc3377c

Browse files
committed
chore(CI): fix CI and linter warnings
1 parent 209fe89 commit cc3377c

File tree

2 files changed

+19
-13
lines changed

2 files changed

+19
-13
lines changed

.github/workflows/ci.yml

+10-7
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,11 @@ jobs:
4040
steps:
4141
- uses: actions/checkout@v4
4242
- uses: dtolnay/rust-toolchain@nightly
43-
# https://github.com/dtolnay/rust-toolchain/issues/29
44-
- run: rustup override set nightly
43+
with:
44+
toolchain: nightly
45+
components: llvm-tools-preview
46+
# # https://github.com/dtolnay/rust-toolchain/issues/29
47+
# - run: rustup override set nightly
4548
- name: Set grcov version
4649
run: echo "GRCOV_VERSION=$(cargo search --limit 1 grcov | head -n1 | cut -d '"' -f2)" >> $GITHUB_ENV
4750
- run: cargo install --version $GRCOV_VERSION grcov
@@ -52,17 +55,17 @@ jobs:
5255
- uses: Swatinem/[email protected]
5356
with:
5457
key: ${{ env.GRCOV_VERSION }}
55-
- run: cargo test --no-fail-fast --no-default-features --features ${{ matrix.all_registries }},${{ matrix.http_client }}
58+
- run: cargo +nightly test --no-fail-fast --no-default-features --features ${{ matrix.all_registries }},${{ matrix.http_client }}
5659
env:
5760
CARGO_INCREMENTAL: '0'
5861
RUSTFLAGS: |
59-
-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off
62+
-Cinstrument-coverage -Ccodegen-units=1 -Cllvm-args=--inline-threshold==0 -Clink-dead-code -Coverflow-checks=off
6063
RUSTDOCFLAGS: |
61-
-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off
64+
-Cinstrument-coverage -Ccodegen-units=1 -Cllvm-args=--inline-threshold==0 -Clink-dead-code -Coverflow-checks=off
6265
- uses: actions-rs/[email protected]
63-
- uses: codecov/codecov-action@v4
66+
- uses: codecov/codecov-action@v5
6467
with:
65-
file: ./lcov.info
68+
files: ./lcov.info
6669

6770
cargo-sort:
6871
runs-on: ubuntu-latest

README.md

+9-6
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
[codecov-badge]: https://codecov.io/gh/mgrachev/update-informer/branch/main/graph/badge.svg?token=A4XD1DGFGJ
1010
[codecov-url]: https://codecov.io/gh/mgrachev/update-informer
1111
[downloads-badge]: https://img.shields.io/crates/d/update-informer
12-
[etcetera]: https://github.com/lunacookies/etcetera
12+
[etcetera]: https://github.com/lunacookies/etcetera
1313
[ureq]: https://github.com/algesten/ureq
1414
[semver]: https://github.com/dtolnay/semver
1515
[serde]: https://github.com/serde-rs/serde
@@ -35,8 +35,8 @@
3535
[![Downloads][downloads-badge]][crates-url]
3636

3737
<img align="right"
38-
alt="update-informer"
39-
src="https://raw.githubusercontent.com/mgrachev/update-informer/main/logo.svg?sanitize=true">
38+
alt="update-informer"
39+
src="https://raw.githubusercontent.com/mgrachev/update-informer/main/logo.svg?sanitize=true">
4040

4141
Update informer for applications written in Rust 🦀
4242

@@ -47,7 +47,8 @@ It checks for a new version on Crates.io, GitHub, Npm and PyPI. 🚀
4747
- Support of **Crates.io**, **GitHub**, **Npm** and **PyPI**.
4848
- Configurable [check frequency](#interval) and [request timeout](#request-timeout).
4949
- [Caching](#caching) the results of checking updates.
50-
- Ability to implement your own [registry](#implementing-your-own-registry) or [http client](#using-your-own-http-client).
50+
- Ability to implement your own [registry](#implementing-your-own-registry)
51+
or [http client](#using-your-own-http-client).
5152
- **Minimum dependencies** - only [etcetera], [semver], [serde] and an HTTP client ([ureq] or [reqwest]).
5253

5354
## Idea
@@ -204,7 +205,8 @@ informer.check_version();
204205

205206
## Tests
206207

207-
In order not to check for updates in tests, you can use the `FakeUpdateInformer::check_version` function, which returns the desired version:
208+
In order not to check for updates in tests, you can use the `FakeUpdateInformer::check_version` function, which returns
209+
the desired version:
208210

209211
```rust
210212
use update_informer::{registry, Check};
@@ -225,7 +227,8 @@ if let Some(version) = informer.check_version().ok().flatten() {
225227

226228
## Integration tests
227229

228-
To use the `FakeUpdateInformer::check_version` function in integration tests, you must first add the feature flag to `Cargo.toml`:
230+
To use the `FakeUpdateInformer::check_version` function in integration tests, you must first add the feature flag to
231+
`Cargo.toml`:
229232

230233
```toml
231234
[features]

0 commit comments

Comments
 (0)