Browse Source
Add ci
Includes a few checks:
- dprint check
- clippy
- workspace tests on ubuntu and macos
bdk-0.11
Philipp Hoenisch
3 years ago
committed by
Lucas Soriano del Pino
No known key found for this signature in database
GPG Key ID: EE611E973A1530E7
1 changed files with
41 additions and
3 deletions
-
.github/workflows/ci.yml
|
|
@ -8,8 +8,46 @@ on: |
|
|
|
- 'master' |
|
|
|
|
|
|
|
jobs: |
|
|
|
hello_world: |
|
|
|
static_analysis: |
|
|
|
runs-on: ubuntu-latest |
|
|
|
steps: |
|
|
|
- name: print hello world |
|
|
|
run: echo "hello world" |
|
|
|
- name: Checkout sources |
|
|
|
uses: actions/checkout@v2 |
|
|
|
- uses: dprint/check@v1.5 |
|
|
|
|
|
|
|
- name: Install Rust |
|
|
|
uses: actions-rs/toolchain@v1 |
|
|
|
with: |
|
|
|
profile: minimal |
|
|
|
override: true |
|
|
|
toolchain: stable |
|
|
|
components: clippy |
|
|
|
|
|
|
|
- name: Run clippy with default features |
|
|
|
run: cargo clippy --workspace --all-targets -- -D warnings |
|
|
|
|
|
|
|
test_worspace: |
|
|
|
strategy: |
|
|
|
matrix: |
|
|
|
target: [ x86_64-unknown-linux-gnu, x86_64-apple-darwin ] |
|
|
|
include: |
|
|
|
- target: x86_64-unknown-linux-gnu |
|
|
|
os: ubuntu-latest |
|
|
|
- target: x86_64-apple-darwin |
|
|
|
os: macos-latest |
|
|
|
runs-on: ${{ matrix.os }} |
|
|
|
steps: |
|
|
|
- name: Checkout sources |
|
|
|
uses: actions/checkout@v2 |
|
|
|
|
|
|
|
- name: Install Rust toolchain |
|
|
|
uses: actions-rs/toolchain@v1 |
|
|
|
with: |
|
|
|
profile: minimal |
|
|
|
override: true |
|
|
|
toolchain: stable |
|
|
|
|
|
|
|
- uses: Swatinem/rust-cache@v1.3.0 |
|
|
|
|
|
|
|
- name: Cargo test workspace |
|
|
|
run: cargo test --workspace --all-features |
|
|
|