Test #180
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 | |
| on: | |
| pull_request: | |
| schedule: | |
| - cron: '0 22 * * 3' | |
| workflow_call: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: Test | |
| strategy: | |
| matrix: | |
| node-version: | |
| - '22.12.x' | |
| os: | |
| - macos-latest | |
| - ubuntu-latest | |
| - windows-latest | |
| runs-on: '${{ matrix.os }}' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
| with: | |
| node-version: '${{ matrix.node-version }}' | |
| cache: 'yarn' | |
| - name: Setup CI Environment | |
| run: test/ci/before_install.sh | |
| - name: Install | |
| run: yarn install --frozen-lockfile | |
| - name: Build | |
| run: yarn build | |
| - name: Electron Cache | |
| uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4 | |
| with: | |
| path: ~/.cache/electron | |
| key: v1-electron-cache-${{ matrix.os }} | |
| - name: Download Electron binaries | |
| run: npx tsx test/ci/download-electron.ts | |
| - name: Lint | |
| run: yarn run lint | |
| - name: Test | |
| run: | | |
| yarn run test | |
| - name: Build Docs | |
| run: yarn run build:docs |