fix: renderTxt2ImgBitmap width/height maybe incorrect when custom fon… #210
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: | |
| branches: | |
| - main | |
| merge_group: {} | |
| jobs: | |
| test-macos: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: browser-actions/setup-chrome@v1 | |
| with: | |
| chrome-version: stable | |
| install-dependencies: true | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Set node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/* | |
| cache: pnpm | |
| - name: Setup | |
| run: npm i -g @antfu/ni | |
| - name: Install | |
| run: nci | |
| - name: Build | |
| run: nr build | |
| - name: Test | |
| run: nr ci:test | |
| test-windows: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: browser-actions/setup-chrome@v1 | |
| with: | |
| chrome-version: stable | |
| install-dependencies: true | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Set node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/* | |
| cache: pnpm | |
| - name: Setup | |
| run: npm i -g @antfu/ni | |
| - name: Install | |
| run: nci | |
| - name: Build | |
| run: nr build | |
| - name: Test | |
| run: nr ci:test |