diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7abb851..fc97b7c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,13 +8,16 @@ on: - 'master' jobs: - static_analysis: + formatting: runs-on: ubuntu-latest steps: - - name: Checkout sources - uses: actions/checkout@v2 + - uses: actions/checkout@v2 - uses: dprint/check@v1.5 + clippy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 - name: Install Rust uses: actions-rs/toolchain@v1 with: @@ -22,35 +25,23 @@ jobs: override: true toolchain: stable components: clippy + - run: cargo clippy --workspace --all-targets -- -D warnings - - uses: actions/setup-node@v2 - with: - cache: 'yarn' - cache-dependency-path: frontend/yarn.lock - - - name: Run clippy with default features - run: cargo clippy --workspace --all-targets -- -D warnings - - - name: Run eslint - working-directory: frontend - run: | - yarn install - yarn run eslint - - build_frontend: + yarn: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: cache: 'yarn' cache-dependency-path: frontend/yarn.lock - - run: | yarn install + yarn run eslint yarn build working-directory: frontend - cargo_test: + cargo: strategy: matrix: target: [ x86_64-unknown-linux-gnu, x86_64-apple-darwin ] @@ -61,49 +52,16 @@ jobs: os: macos-latest runs-on: ${{ matrix.os }} steps: - - name: Checkout sources - uses: actions/checkout@v2 - + - 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 - run: cargo test --workspace --all-features - - smoke_test_daemons: - 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: Build ${{ matrix.target }} release binary - run: | - cargo build --target=${{ matrix.target }} --release --bin maker - cargo build --target=${{ matrix.target }} --release --bin taker - + - run: cargo test --workspace --all-features + - run: cargo build --target=${{ matrix.target }} --release --bin maker --bin taker - name: Smoke test ${{ matrix.target }} release binary run: | target/${{ matrix.target }}/release/maker &