Use update ci workflows to use defaults.run.working-directory
This commit is contained in:
22
.github/workflows/cont_integration.yml
vendored
22
.github/workflows/cont_integration.yml
vendored
@@ -12,6 +12,9 @@ jobs:
|
||||
build-test:
|
||||
name: Build and test
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: bdk-ffi
|
||||
strategy:
|
||||
matrix:
|
||||
rust:
|
||||
@@ -41,22 +44,19 @@ jobs:
|
||||
- name: Update toolchain
|
||||
run: rustup update
|
||||
- name: Build
|
||||
run: |
|
||||
cd bdk-ffi
|
||||
cargo build
|
||||
run: cargo build
|
||||
- name: Clippy
|
||||
if: ${{ matrix.rust.clippy }}
|
||||
run: |
|
||||
cd bdk-ffi
|
||||
cargo clippy --all-targets -- -D warnings
|
||||
run: cargo clippy --all-targets -- -D warnings
|
||||
- name: Test
|
||||
run: |
|
||||
cd bdk-ffi
|
||||
CLASSPATH=./tests/jna/jna-5.8.0.jar cargo test
|
||||
run: CLASSPATH=./tests/jna/jna-5.8.0.jar cargo test
|
||||
|
||||
fmt:
|
||||
name: Rust fmt
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: bdk-ffi
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
@@ -69,6 +69,4 @@ jobs:
|
||||
- name: Update toolchain
|
||||
run: rustup update
|
||||
- name: Check fmt
|
||||
run: |
|
||||
cd bdk-ffi
|
||||
cargo fmt --all -- --config format_code_in_doc_comments=true --check
|
||||
run: cargo fmt --all -- --config format_code_in_doc_comments=true --check
|
||||
|
||||
Reference in New Issue
Block a user