stop trying to cache build for docker tests, upgrade prettier dprint plugin

This commit is contained in:
einliterflasche 2025-08-29 09:13:41 +02:00
parent f2b23348d7
commit 16cdff649c
No known key found for this signature in database
GPG key ID: 90676A9B07184BC9
2 changed files with 1 additions and 28 deletions

View file

@ -102,28 +102,7 @@ jobs:
- name: Run library tests for swap
run: cargo test --package swap --lib
prepare_docker_tests:
runs-on: ubuntu-22.04
if: github.event_name == 'push' || !github.event.pull_request.draft
steps:
- uses: actions/checkout@v4
- name: Setup build environment (cli tools, dependencies)
uses: ./.github/actions/setup-build-environment
with:
host: ubuntu-22.04
- name: Run cargo build once to build the cache
run: cargo build --package swap
- name: Cache target directory
uses: actions/cache/save@v4
with:
path: target/
key: cargo-build-${{ github.sha }}
docker_tests:
needs: prepare_docker_tests
strategy:
fail-fast: false
matrix:
@ -177,12 +156,6 @@ jobs:
with:
host: ubuntu-22.04
- name: Restore build cache from perpare_docker_tests
uses: actions/cache/restore@v4
with:
path: target/
key: cargo-build-${{ github.sha }}
- name: Run test ${{ matrix.test_name }}
run: cargo test --package ${{ matrix.package }} --test ${{ matrix.test_name }} -- --nocapture

View file

@ -32,6 +32,6 @@
"https://plugins.dprint.dev/markdown-0.18.0.wasm",
"https://plugins.dprint.dev/toml-0.7.0.wasm",
"https://plugins.dprint.dev/exec-0.5.1.json@492414e39dea4dccc07b4af796d2f4efdb89e84bae2bd4e1e924c0cc050855bf",
"https://plugins.dprint.dev/prettier-0.57.0.json@1bc6b449e982d5b91a25a7c59894102d40c5748651a08a095fb3926e64d55a31"
"https://plugins.dprint.dev/prettier-0.58.2.json@2fd8cc9c9773364848dc93735b01a00d55fcfa78a56a9230b4b63c014964c82d"
]
}