Skip to content
This repository was archived by the owner on Jan 30, 2026. It is now read-only.

chore: bump sdk version, opt-out of ignoring deleted resources in pagination #639

chore: bump sdk version, opt-out of ignoring deleted resources in pagination

chore: bump sdk version, opt-out of ignoring deleted resources in pagination #639

Workflow file for this run

name: CI
permissions:
contents: read
on:
pull_request:
push:
branches:
- main
env:
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: always
CLICOLOR: 1
CARGO_INCREMENTAL: 0
CARGO_NET_GIT_FETCH_WITH_CLI: true
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
ci:
permissions:
contents: none
name: CI
needs: [test, lint, s2-integration, s2-lite-integration]
runs-on: ubuntu-latest
if: always()
steps:
- name: Failed
run: exit 1
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped')
test:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: install rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: Install nextest
uses: taiki-e/install-action@nextest
- name: Run CLI validation tests
run: cargo nextest run --test cli
s2-integration:
name: S2 Integration
runs-on: ubuntu-latest
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository
env:
S2_ACCESS_TOKEN: ${{ secrets.S2_ACCESS_TOKEN }}
steps:
- name: checkout
uses: actions/checkout@v4
- name: install rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
- name: Install nextest
uses: taiki-e/install-action@nextest
- name: Run integration tests
run: cargo nextest run --test integration -j 1
build-s2-lite:
name: Build S2-lite
uses: s2-streamstore/s2/.github/workflows/build-s2-lite.yml@main
s2-lite-integration:
name: S2-lite Integration
needs: build-s2-lite
uses: s2-streamstore/s2/.github/workflows/sdk-tests.yml@main
with:
server-binary: server
server-args: "--port 8080"
server-port: 8080
sdks: |
[
{
"name": "cli",
"repo": "${{ github.repository }}",
"ref": "${{ github.ref }}",
"lang": "rust",
"test_cmd": "cargo install cargo-nextest && cargo nextest run --test integration -j 1"
}
]
lint:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: install rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: Install cargo-sort
uses: baptiste0928/cargo-install@v3
with:
crate: cargo-sort
version: "^1.0"
- name: Check documentation
env:
RUSTDOCFLAGS: -D warnings
run: cargo doc --workspace --all-features --no-deps --document-private-items
- name: Check formatting
run: cargo fmt --all -- --check
- name: check clippy
run: cargo clippy --workspace --all-features --all-targets -- -D warnings --allow deprecated
- name: Check Cargo.toml sorting
run: cargo sort --workspace --check