Skip to content

Continuous integration #1201

Continuous integration

Continuous integration #1201

Workflow file for this run

name: Test and Build
on: [push, pull_request]
jobs:
test-lib:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust: [stable, nightly]
steps:
- uses: actions/checkout@v2
- uses: Swatinem/[email protected]
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- name: test
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose --all-features --lib --manifest-path payjoin/Cargo.toml
build-payjoin-cli:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust: [stable, nightly]
steps:
- uses: actions/checkout@v2
- uses: Swatinem/[email protected]
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- run: cd payjoin-cli
- name: build payjoin example
uses: actions-rs/cargo@v1
with:
command: build
args: --manifest-path payjoin-cli/Cargo.toml
fmt:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
rust: [nightly]
steps:
- uses: actions/checkout@v2
- uses: Swatinem/[email protected]
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- run: rustup component add rustfmt --toolchain nightly-x86_64-unknown-linux-gnu
- run: cargo fmt --all -- --check