Add --bespoke.thumbnails option for slide thumbnails in presenter view #2143
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: Test for Windows | |
| on: | |
| - pull_request | |
| - push | |
| # concurrency: | |
| # group: ${{ github.workflow }}-${{ (github.ref_name == 'main' && github.run_id) || format('{0}-{1}', github.actor, github.head_ref || github.ref_name) }} | |
| # cancel-in-progress: true | |
| jobs: | |
| win-test: | |
| runs-on: windows-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: | |
| - '^18.20.8' | |
| - '^20.20.0' | |
| - '22.22.0' | |
| - '^24.14.0' | |
| steps: | |
| # - name: Output concurrency group | |
| # run: echo "${{ github.workflow }}-${{ (github.ref_name == 'main' && github.run_id) || format('{0}-{1}', github.actor, github.head_ref || github.ref_name) }}" | |
| - name: Get number of CPU cores | |
| uses: SimenB/github-actions-cpu-cores@v2 | |
| id: cpu-cores | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Set up LibreOffice | |
| run: choco install libreoffice-fresh -y | |
| # Retry tests up to 3 times due to flaky tests on Windows CI | |
| # https://stackoverflow.com/a/59365905 | |
| - name: Jest | |
| env: | |
| JEST_JUNIT_CLASSNAME: '{filepath}' | |
| JEST_JUNIT_OUTPUT_DIR: tmp/test-results | |
| MARP_TEST_CI: 1 | |
| run: >- | |
| npm run test:coverage -- --ci --max-workers ${{ steps.cpu-cores.outputs.count }} --reporters=default --reporters=jest-junit || | |
| npm run test:coverage -- --ci --bail -i --reporters=default --reporters=jest-junit || | |
| npm run test:coverage -- --ci --bail -i --reporters=default --reporters=jest-junit --no-cache || | |
| npm run test:coverage -- --ci --bail -i --reporters=default --reporters=jest-junit --no-cache | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-${{ matrix.node-version }} | |
| path: coverage | |
| - uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| flags: windows | |
| - uses: codecov/test-results-action@v1 | |
| if: ${{ !cancelled() }} | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| flags: windows |