Adaptation for version 1.27 #21
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: pr | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| checks: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| check: | |
| - eslint | |
| - prettier | |
| - tsgo | |
| - vitest | |
| - build | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: "1.3.14" | |
| - uses: actions/cache@v6 | |
| with: | |
| path: | | |
| node_modules | |
| ~/.bun/install/cache | |
| key: bun-${{ runner.os }}-${{ hashFiles('bun.lock') }} | |
| - run: bun install | |
| - name: Lint | |
| if: matrix.check == 'eslint' | |
| run: bun lint | |
| - name: Format check | |
| if: matrix.check == 'prettier' | |
| run: bun fmt --check | |
| - name: Type check | |
| if: matrix.check == 'tsgo' | |
| run: bun tsgo -b | |
| - name: Test | |
| if: matrix.check == 'vitest' | |
| run: bun vitest --run | |
| - name: Build | |
| id: build | |
| if: matrix.check == 'build' | |
| run: bun bundle | |
| - name: Upload css assets | |
| if: steps.build.outcome == 'success' | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: themes | |
| path: dist/*.css | |
| - name: Upload templates assets | |
| if: steps.build.outcome == 'success' | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: templates | |
| path: templates |