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
3 changes: 3 additions & 0 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@ jobs:
with:
components: clippy
- uses: Swatinem/rust-cache@v2
with:
# Only pushes to main save, so other runs restore main's cache.
save-if: ${{ github.ref == 'refs/heads/main' }}
- run: cargo clippy --all-targets -- -D warnings
8 changes: 8 additions & 0 deletions .github/workflows/integration-cassandra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
# Only pushes to main save, so other runs restore main's cache.
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Configure Cassandra authentication
run: |
docker exec ${{ job.services.cassandra.id }} sed -i \
Expand Down Expand Up @@ -121,6 +123,8 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
# Only pushes to main save, so other runs restore main's cache.
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Configure Cassandra authentication
run: |
docker exec ${{ job.services.cassandra.id }} sed -i \
Expand Down Expand Up @@ -172,6 +176,8 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
# Only pushes to main save, so other runs restore main's cache.
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Configure Cassandra authentication
run: |
docker exec ${{ job.services.cassandra.id }} sed -i \
Expand Down Expand Up @@ -208,6 +214,8 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
# Only pushes to main save, so other runs restore main's cache.
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Check production Cassandra feature graph
run: cargo check --release --no-default-features --features cassandra

Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/integration-mongodb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
# Only pushes to main save, so other runs restore main's cache.
save-if: ${{ github.ref == 'refs/heads/main' }}
- uses: actions/setup-python@v5
with:
python-version: "3.11"
Expand All @@ -64,6 +66,8 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
# Only pushes to main save, so other runs restore main's cache.
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Start replica set
# Same bootstrap developers run locally; --mongo-only skips the
# server and prints the URI. No pipe: a bootstrap failure must fail
Expand Down Expand Up @@ -109,6 +113,8 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
# Only pushes to main save, so other runs restore main's cache.
save-if: ${{ github.ref == 'refs/heads/main' }}
- uses: actions/setup-python@v5
with:
python-version: "3.11"
Expand All @@ -128,6 +134,8 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
# Only pushes to main save, so other runs restore main's cache.
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Check production MongoDB feature graph
run: cargo check --release --no-default-features --features mongodb

Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
# Only pushes to main save, so other runs restore main's cache.
save-if: ${{ github.ref == 'refs/heads/main' }}

- name: Build release
run: cargo build --release
Expand Down Expand Up @@ -116,6 +118,8 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
# Only pushes to main save, so other runs restore main's cache.
save-if: ${{ github.ref == 'refs/heads/main' }}

- name: Build release (SQLite backend)
run: cargo build --release -p extenddb --no-default-features --features sqlite
Expand Down Expand Up @@ -178,6 +182,8 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
# Only pushes to main save, so other runs restore main's cache.
save-if: ${{ github.ref == 'refs/heads/main' }}

- name: Build release (dev mode, in-memory SQLite)
run: cargo build --release -p extenddb --no-default-features --features sqlite-memory,dev-mode
Expand Down Expand Up @@ -240,6 +246,8 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
# Only pushes to main save, so other runs restore main's cache.
save-if: ${{ github.ref == 'refs/heads/main' }}

- name: Build release
run: cargo build --release
Expand Down Expand Up @@ -354,6 +362,8 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
# Only pushes to main save, so other runs restore main's cache.
save-if: ${{ github.ref == 'refs/heads/main' }}

- name: Build release
run: cargo build --release
Expand Down Expand Up @@ -415,6 +425,8 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
# Only pushes to main save, so other runs restore main's cache.
save-if: ${{ github.ref == 'refs/heads/main' }}

- name: Build release (SQLite backend)
run: cargo build --release -p extenddb --no-default-features --features sqlite
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ jobs:
with:
toolchain: ${{ matrix.toolchain }}
- uses: Swatinem/rust-cache@v2
with:
# Only pushes to main save, so other runs restore main's cache.
save-if: ${{ github.ref == 'refs/heads/main' }}

# Local S3 endpoint for the backup-store conformance suite. moto is a
# pip package, so it needs no container image; MinIO no longer
Expand Down
Loading