Skip to content

Commit

Permalink
Disable legacy nats in CI
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Pietrek <[email protected]>
  • Loading branch information
Jarema committed Jan 29, 2025
1 parent edd386c commit 755e1f0
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ env:

jobs:
benchmark:
defaults:
run:
working-directory: ./async-nats
runs-on: ubuntu-latest
steps:
- name: Check out repository
Expand All @@ -36,7 +39,7 @@ jobs:
with:
shared-key: ${{ runner.os }}-${{ steps.install-rust.outputs.cachekey }}-${{ hashFiles('**/Cargo.toml') }}
- name: Build the package # for caching
run: cargo build --all --all-targets
run: cargo build --all-targets

- name: Run benchmarks
env:
Expand Down
26 changes: 24 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ defaults:

jobs:
test_matrix:
defaults:
run:
working-directory: ./async-nats
name: test (${{ matrix.os }} / stable)
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -55,7 +58,8 @@ jobs:
cache-on-failure: true
- name: Build all packages
id: build-packages
run: cargo build --all --all-targets
run: |
cargo build --all-targets
- name: Setup deno for service tests
if: ${{ matrix.os }} != windows-latest
Expand Down Expand Up @@ -91,6 +95,9 @@ jobs:
run: cargo fmt -- --check

check_lint:
defaults:
run:
working-directory: ./async-nats
name: check linter (ubuntu-latest / stable)
runs-on: ubuntu-latest
steps:
Expand All @@ -109,9 +116,12 @@ jobs:
save-if: false # the linter only run checks but not builds, so we don't have the full build to be cached.

- name: Run linter
run: cargo clippy --benches --tests --examples --all-features --workspace --exclude nats -- --deny clippy::all
run: cargo clippy --benches --tests --examples --all-features -- --deny clippy::all

check_docs:
defaults:
run:
working-directory: ./async-nats
name: check docs (ubuntu-latest / stable)
runs-on: ubuntu-latest
steps:
Expand All @@ -131,6 +141,9 @@ jobs:
run: cargo doc --no-deps --all-features

check_features:
defaults:
run:
working-directory: ./async-nats
name: check feature flags (ubuntu-latest / stable)
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -163,6 +176,9 @@ jobs:
command-arguments: licenses

check_msrv:
defaults:
run:
working-directory: ./async-nats
name: check minimal supported rust version (ubuntu-latest / msrv)
runs-on: ubuntu-latest
steps:
Expand All @@ -185,6 +201,9 @@ jobs:
cargo +${{ steps.install-rust.outputs.name }} check
check_examples:
defaults:
run:
working-directory: ./async-nats
name: check examples (ubuntu-latest / stable)
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -231,6 +250,9 @@ jobs:
run: cargo spellcheck --code 1

check_min_versions:
defaults:
run:
working-directory: ./async-nats
name: check minimal versions of transitive dependencies (ubuntu-latest / stable)
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion async-nats/src/jetstream/consumer/push.rs
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ impl IntoConsumerConfig for OrderedConfig {
}

impl Consumer<OrderedConfig> {
pub async fn messages<'a>(self) -> Result<Ordered, StreamError> {
pub async fn messages(self) -> Result<Ordered, StreamError> {
let subscriber = self
.context
.client
Expand Down
2 changes: 1 addition & 1 deletion async-nats/src/jetstream/object_store/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ impl ObjectStore {
/// # Ok(())
/// # }
/// ```
pub async fn add_link<'a, T, O>(&self, name: T, object: O) -> Result<ObjectInfo, AddLinkError>
pub async fn add_link<T, O>(&self, name: T, object: O) -> Result<ObjectInfo, AddLinkError>
where
T: ToString,
O: AsObjectInfo,
Expand Down

0 comments on commit 755e1f0

Please sign in to comment.