Browse Source

Merge pull request #37 from thomaseizinger/fix-ci

integrate-protocol-maker-side
Thomas Eizinger 3 years ago
committed by GitHub
parent
commit
b9c8146b71
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 74
      .github/workflows/ci.yml

74
.github/workflows/ci.yml

@ -8,13 +8,16 @@ on:
- 'master' - 'master'
jobs: jobs:
static_analysis: formatting:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout sources - uses: actions/checkout@v2
uses: actions/checkout@v2
- uses: dprint/check@v1.5 - uses: dprint/check@v1.5
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust - name: Install Rust
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
@ -22,47 +25,25 @@ jobs:
override: true override: true
toolchain: stable toolchain: stable
components: clippy components: clippy
- uses: Swatinem/rust-cache@v1.3.0
- run: cargo clippy --workspace --all-targets -- -D warnings
- name: Run clippy with default features yarn:
run: cargo clippy --workspace --all-targets -- -D warnings defaults:
run:
- name: print hello world working-directory: frontend
uses: actions/setup-node@v2 runs-on: ubuntu-latest
with:
cache: 'yarn'
run: yarn install
run: cd frontend && yarn run eslint
cd frontend && yarn build
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: steps:
- name: Checkout sources - uses: actions/checkout@v2
uses: actions/checkout@v2 - uses: actions/setup-node@v2
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with: with:
profile: minimal cache: 'yarn'
override: true cache-dependency-path: frontend/yarn.lock
toolchain: stable - run: yarn install
- run: yarn run eslint
- uses: Swatinem/rust-cache@v1.3.0 - run: yarn build
- name: Cargo test
run: cargo test --workspace --all-features
smoke_test_daemons: cargo:
strategy: strategy:
matrix: matrix:
target: [ x86_64-unknown-linux-gnu, x86_64-apple-darwin ] target: [ x86_64-unknown-linux-gnu, x86_64-apple-darwin ]
@ -73,23 +54,16 @@ jobs:
os: macos-latest os: macos-latest
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- name: Checkout sources - uses: actions/checkout@v2
uses: actions/checkout@v2
- name: Install Rust toolchain - name: Install Rust toolchain
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
profile: minimal profile: minimal
override: true override: true
toolchain: stable toolchain: stable
- uses: Swatinem/rust-cache@v1.3.0 - uses: Swatinem/rust-cache@v1.3.0
- run: cargo test --workspace --all-features
- name: Build ${{ matrix.target }} release binary - run: cargo build --target=${{ matrix.target }} --release --bin maker --bin taker
run: |
cargo build --target=${{ matrix.target }} --release --bin maker
cargo build --target=${{ matrix.target }} --release --bin taker
- name: Smoke test ${{ matrix.target }} release binary - name: Smoke test ${{ matrix.target }} release binary
run: | run: |
target/${{ matrix.target }}/release/maker & target/${{ matrix.target }}/release/maker &

Loading…
Cancel
Save