Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install supported Rust toolchain
run: rustup toolchain install 1.88.0 --profile minimal --component clippy,rustfmt
run: rustup toolchain install 1.95.0 --profile minimal --component clippy,rustfmt
- name: Format
run: cargo +1.88.0 fmt --check
run: cargo +1.95.0 fmt --check
- name: Lint all targets and features
run: cargo +1.88.0 clippy --locked --all-targets --all-features -- -D warnings
run: cargo +1.95.0 clippy --locked --all-targets --all-features -- -D warnings
- name: Test without backends
run: cargo +1.88.0 test --locked --no-default-features
run: cargo +1.95.0 test --locked --no-default-features
- name: Check README doctest and example
run: cargo +1.88.0 test --locked --doc && cargo +1.88.0 run --locked --no-default-features --example counter
run: cargo +1.95.0 test --locked --doc && cargo +1.95.0 run --locked --no-default-features --example counter

backends:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install supported Rust toolchain
run: rustup toolchain install 1.88.0 --profile minimal
run: rustup toolchain install 1.95.0 --profile minimal
- name: Start test services
run: |
cp .env.example .env
Expand All @@ -41,9 +41,9 @@ jobs:
docker compose ps
exit 1
- name: Test default backends
run: cargo +1.88.0 test --locked
run: cargo +1.95.0 test --locked
- name: Test every backend
run: cargo +1.88.0 test --locked --all-features
run: cargo +1.95.0 test --locked --all-features
- name: Stop test services
if: always()
run: docker compose down
24 changes: 12 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install supported Rust toolchain
run: rustup toolchain install 1.88.0 --profile minimal
run: rustup toolchain install 1.95.0 --profile minimal
- name: Verify
run: |
TAG="${GITHUB_REF_NAME#v}"
VERSION=$(cargo +1.88.0 metadata --no-deps --format-version 1 \
VERSION=$(cargo +1.95.0 metadata --no-deps --format-version 1 \
| jq -r '.packages[0].version')
if [ "$TAG" != "$VERSION" ]; then
echo "::error::tag v$TAG does not match Cargo.toml version $VERSION"
Expand All @@ -40,23 +40,23 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install supported Rust toolchain
run: rustup toolchain install 1.88.0 --profile minimal --component clippy,rustfmt
run: rustup toolchain install 1.95.0 --profile minimal --component clippy,rustfmt
- name: Format
run: cargo +1.88.0 fmt --check
run: cargo +1.95.0 fmt --check
- name: Lint all targets and features
run: cargo +1.88.0 clippy --locked --all-targets --all-features -- -D warnings
run: cargo +1.95.0 clippy --locked --all-targets --all-features -- -D warnings
- name: Test without backends
run: cargo +1.88.0 test --locked --no-default-features
run: cargo +1.95.0 test --locked --no-default-features
- name: Check README doctest and example
run: cargo +1.88.0 test --locked --doc && cargo +1.88.0 run --locked --no-default-features --example counter
run: cargo +1.95.0 test --locked --doc && cargo +1.95.0 run --locked --no-default-features --example counter

backends:
name: backend integration tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install supported Rust toolchain
run: rustup toolchain install 1.88.0 --profile minimal
run: rustup toolchain install 1.95.0 --profile minimal
- name: Start test services
run: |
cp .env.example .env
Expand All @@ -72,9 +72,9 @@ jobs:
docker compose ps
exit 1
- name: Test default backends
run: cargo +1.88.0 test --locked
run: cargo +1.95.0 test --locked
- name: Test every backend
run: cargo +1.88.0 test --locked --all-features
run: cargo +1.95.0 test --locked --all-features
- name: Stop test services
if: always()
run: docker compose down
Expand All @@ -88,6 +88,6 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install supported Rust toolchain
run: rustup toolchain install 1.88.0 --profile minimal
run: rustup toolchain install 1.95.0 --profile minimal
- name: Publish epoch-journal
run: cargo +1.88.0 publish
run: cargo +1.95.0 publish
Loading