feat: produceMany [cd] #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ci | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| env: | |
| HERMESMQD_VERSION: 0.5.0 | |
| jobs: | |
| test: | |
| name: lint, build and smoke test | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| - name: Setup Node | |
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
| with: | |
| node-version: 24 | |
| - name: Setup Rust | |
| uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable | |
| with: | |
| components: rustfmt, clippy | |
| - name: Cache cargo | |
| uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1 | |
| - name: Check formatting | |
| run: cargo fmt --check | |
| - name: Clippy | |
| run: cargo clippy --all-targets -- -D warnings | |
| - name: Cache hermesmqd | |
| id: cache-hermesmqd | |
| uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 | |
| with: | |
| path: ~/.cargo/bin/hermesmqd | |
| key: hermesmqd-${{ runner.os }}-${{ env.HERMESMQD_VERSION }} | |
| - name: Install hermesmqd | |
| if: steps.cache-hermesmqd.outputs.cache-hit != 'true' | |
| run: cargo install hermesmqd --version ${{ env.HERMESMQD_VERSION }} --locked | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Build | |
| run: npx napi build --platform | |
| - name: Smoke tests | |
| run: npm test |