Improve search ranking by filtering boilerplate lines #252
Workflow file for this run
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: | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| ci: | |
| name: CI | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/* | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Add wasm32 target | |
| run: rustup target add wasm32-unknown-unknown | |
| - name: Cache Rust build | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: apps/reebe -> target | |
| - name: Install wasm-pack | |
| uses: jetli/wasm-pack-action@v0.4.0 | |
| with: | |
| version: latest | |
| - name: Build reebe-wasm | |
| env: | |
| CARGO_HTTP_MULTIPLEXING: false | |
| run: | | |
| WASM_VERSION=$(node -p "require('./apps/reebe-wasm/package.json').version") | |
| wasm-pack build apps/reebe/crates/reebe-wasm --target web --scope bpmnkit --out-dir "$GITHUB_WORKSPACE/apps/reebe-wasm" | |
| node scripts/patch-wasm-pkg.mjs "$WASM_VERSION" | |
| - name: Build | |
| run: pnpm build | |
| - name: Typecheck | |
| run: pnpm typecheck | |
| - name: Lint & Format | |
| run: pnpm check | |
| - name: Test | |
| run: pnpm test | |
| # Packs every published package and checks the tarball contains each path | |
| # its manifest declares. The release workflow runs the full check, which | |
| # also installs and type-checks each tarball from the network — far too | |
| # slow for a PR. `--pack-only` is offline and takes about a second, and it | |
| # is the half that catches a packaging break: three `plugins-cli` packages | |
| # reached `main` behind a green PR shipping no `dist/`, and the failure | |
| # surfaced in the release workflow, where it silently stopped publishing. | |
| - name: Check packages are packable | |
| run: pnpm check:consumable --pack-only | |
| # The 1.0 promise is that these packages' exports do not change shape without | |
| # a major. Nothing else here can see that happen: tsc is happy when an export | |
| # disappears, tests only cover what they import, and the packable check looks | |
| # at whether entry points resolve, not what is behind them. This diffs the | |
| # built declarations against the committed snapshot. | |
| - name: Check the public API surface | |
| run: pnpm check:api |