fix: keep the viewport window over scrollback on vertical resize #231
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: | |
| push: | |
| branches: [main] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Zig | |
| run: | | |
| curl -sSfLo zig.tar.xz https://ziglang.org/download/0.16.0/zig-x86_64-linux-0.16.0.tar.xz | |
| echo "70e49664a74374b48b51e6f3fdfbf437f6395d42509050588bd49abe52ba3d00 zig.tar.xz" | sha256sum -c | |
| tar -xJf zig.tar.xz | |
| echo "$PWD/zig-x86_64-linux-0.16.0" >> "$GITHUB_PATH" | |
| - name: Zig tests | |
| run: zig build test | |
| - name: WASM drift check | |
| run: | | |
| zig build -Doptimize=ReleaseSmall | |
| if ! diff -q zig-out/bin/wterm.wasm packages/@wterm/core/wasm/wterm.wasm > /dev/null 2>&1; then | |
| echo "::error::Committed wterm.wasm does not match Zig sources. Rebuild with 'zig build -Doptimize=ReleaseSmall' and commit the updated packages/@wterm/core/wasm/wterm.wasm." | |
| exit 1 | |
| fi | |
| - name: Clean Zig artifacts | |
| run: rm -rf zig-x86_64-linux-0.16.0 zig.tar.xz zig-out .zig-cache | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: .node-version | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - name: Format check | |
| run: pnpm format:check | |
| - name: Build packages | |
| run: pnpm build | |
| - name: Test | |
| run: pnpm test | |
| - name: Lint | |
| run: pnpm lint | |
| - name: Type check | |
| run: pnpm type-check | |
| - name: Install Playwright browsers | |
| run: npx playwright install --with-deps chromium | |
| - name: E2E tests | |
| run: pnpm test:e2e |