Repository navigation
Notify reviewers when release approval is pending #1014
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| env: | |
| CLICOLOR: 1 | |
| jobs: | |
| test: | |
| runs-on: "${{ vars.CI_RUNNER_SMALL || 'ubuntu-latest' }}" | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| - name: ⎔ Setup pnpm | |
| uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6 | |
| - name: ⎔ Setup Node.js | |
| uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7 | |
| with: | |
| node-version: 26 | |
| cache: pnpm | |
| - name: 📥 Install dependencies | |
| run: pnpm install --ignore-scripts --frozen-lockfile | |
| - name: 🧹 Lint | |
| run: pnpm exec oxlint | |
| - name: 🔍 Type Check | |
| run: pnpm run typecheck | |
| - name: 🌐 Install browser | |
| run: pnpm exec playwright install --with-deps chromium | |
| - name: 🧪 Test | |
| run: pnpm run test | |
| - name: 🏗️ Build package and demo | |
| run: | | |
| pnpm run build | |
| pnpm run demo | |
| - name: 📊 Report Coverage | |
| if: ${{ always() && hashFiles('coverage/coverage-summary.json') != '' }} | |
| uses: davelosert/vitest-coverage-report-action@74c2d9210b4fc44c84d8213f61d7ec99837b7aa0 # v2 | |
| with: | |
| pr-number: auto | |
| security: | |
| runs-on: "${{ vars.CI_RUNNER_SMALL || 'ubuntu-latest' }}" | |
| permissions: | |
| contents: read | |
| security-events: write | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| - name: 🔍 Run CodeQL | |
| uses: github/codeql-action/init@33d7b85da1a04171e211befe2c739303b9a4c066 # v4 | |
| with: | |
| languages: javascript | |
| - name: 🔍 Perform Analysis | |
| uses: github/codeql-action/analyze@33d7b85da1a04171e211befe2c739303b9a4c066 # v4 | |
| spelling: | |
| runs-on: "${{ vars.CI_RUNNER_SMALL || 'ubuntu-latest' }}" | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| - name: 🔍 Spell Check Repo | |
| uses: crate-ci/typos@276087d9a4f06398b3e04825487805e2d7375888 # v1.52.2 |