Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: github worflows #7

Merged
merged 11 commits into from
Dec 11, 2024
28 changes: 0 additions & 28 deletions .github/workflows/audit.yml

This file was deleted.

56 changes: 23 additions & 33 deletions .github/workflows/cont_integration.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
on: [push, pull_request]
on:
pull_request:
branches:
- main

name: CI

Expand All @@ -21,40 +24,33 @@ jobs:
matrix:
rust:
- version: stable
clippy: true
- version: 1.63.0 # MSRV
features:
- --no-default-features
- --all-features
- all
- debug,default
- debug,esplora
- debug,snap
- debug,bitcoind
steps:
- name: checkout
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@4f647fc679bcd3b11499ccb42104547c83dabe96
with:
ccharly marked this conversation as resolved.
Show resolved Hide resolved
toolchain: ${{ matrix.rust.version }}
override: true
profile: minimal
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh -s -- -f
- name: Rust Cache
ccharly marked this conversation as resolved.
Show resolved Hide resolved
uses: Swatinem/rust-cache@v2.7.5
- name: Pin dependencies for MSRV
if: matrix.rust.version == '1.63.0'
run: |
cargo update -p zstd-sys --precise "2.0.8+zstd.1.5.5"
cargo update -p time --precise "0.3.20"
cargo update -p home --precise "0.5.5"
cargo update -p proptest --precise "1.2.0"
cargo update -p url --precise "2.5.0"
cargo update -p cc --precise "1.0.105"
cargo update -p tokio --precise "1.38.1"
cargo update -p tokio-util --precise "0.7.11"
cargo update -p indexmap --precise "2.5.0"
cargo update -p security-framework-sys --precise "2.11.1"
uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab
- name: Build
run: wasm-pack build --features ${{ matrix.features }}
run: |
if [ "${{ matrix.features }}" = "all" ]; then
wasm-pack build --all-features
else
wasm-pack build --features ${{ matrix.features }}
fi
- name: Test
if: ${{ matrix.features != 'all' }}
run: wasm-pack test --chrome --firefox --safari --headless --features ${{ matrix.features }}

fmt:
Expand All @@ -64,11 +60,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@4f647fc679bcd3b11499ccb42104547c83dabe96
with:
toolchain: stable
override: true
profile: minimal
components: rustfmt
- name: Check fmt
run: cargo fmt --all -- --config format_code_in_doc_comments=true --check
Expand All @@ -80,15 +74,11 @@ jobs:
checks: write
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@4f647fc679bcd3b11499ccb42104547c83dabe96
with:
toolchain: ${{ needs.prepare.outputs.rust_version }}
components: clippy
override: true
- name: Rust Cache
uses: Swatinem/rust-cache@v2.7.5
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: Clippy Results
args: --all-features --all-targets -- -D warnings
uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab
- name: Run Clippy
run: cargo clippy --all-features --all-targets -- -D warnings
46 changes: 0 additions & 46 deletions .github/workflows/code_coverage.yml

This file was deleted.

Loading