mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-12-17 09:34:16 -05:00
stop trying to cache build for docker tests, upgrade prettier dprint plugin
This commit is contained in:
parent
f2b23348d7
commit
16cdff649c
2 changed files with 1 additions and 28 deletions
27
.github/workflows/ci.yml
vendored
27
.github/workflows/ci.yml
vendored
|
|
@ -102,28 +102,7 @@ jobs:
|
||||||
- name: Run library tests for swap
|
- name: Run library tests for swap
|
||||||
run: cargo test --package swap --lib
|
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:
|
docker_tests:
|
||||||
needs: prepare_docker_tests
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
|
@ -177,12 +156,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
host: ubuntu-22.04
|
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 }}
|
- name: Run test ${{ matrix.test_name }}
|
||||||
run: cargo test --package ${{ matrix.package }} --test ${{ matrix.test_name }} -- --nocapture
|
run: cargo test --package ${{ matrix.package }} --test ${{ matrix.test_name }} -- --nocapture
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,6 @@
|
||||||
"https://plugins.dprint.dev/markdown-0.18.0.wasm",
|
"https://plugins.dprint.dev/markdown-0.18.0.wasm",
|
||||||
"https://plugins.dprint.dev/toml-0.7.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/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"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue