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: pnpm test | ||
| permissions: | ||
| contents: read | ||
| on: [push, pull_request] | ||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-24.04 | ||
| strategy: | ||
| matrix: | ||
| node-version: [15] | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: pnpm/action-setup@v2.2.2 | ||
| with: | ||
| version: 8 | ||
| name: Configure pnpm registry | ||
| run: pnpm config set registry https://registry.npmjs.org/ | ||
| name: Use Node.js ${{ matrix.node-version }} | ||
| - uses: actions/setup-node@v2 | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
| cache: 'pnpm' | ||
| - name: Install dependencies | ||
| run: | | ||
| for i in {1..3}; do | ||
| pnpm install && break || sleep 10; | ||
| done | ||
| - name: Formatting | ||
| run: pnpm format | ||
| - name: Running tests | ||
| run: pnpm test | ||