V4 Improvements #508
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: | |
| types: | |
| - opened | |
| - synchronize | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| name: Build, lint and test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 🛒 Checkout repo | |
| uses: actions/checkout@v6 | |
| - name: 🏗️ Setup Environment | |
| uses: ./.github/actions/bootstrap | |
| - name: 🚦 Lint | |
| run: pnpm run lint | |
| - name: 🔨 Build | |
| run: pnpm run --filter react-compare-slider build | |
| - name: 👷 Build Example Project | |
| run: pnpm run --filter @this/example build | |
| - name: 🕵️ Check Package Configuration | |
| run: pnpm run --filter react-compare-slider check:package | |
| - name: 🎭 Install Playwright | |
| run: pnpx playwright install --with-deps | |
| - name: 🧪 Test | |
| run: pnpm run test:ci | |
| - uses: qltysh/qlty-action/coverage@v2 | |
| with: | |
| token: ${{secrets.QLTY_COVERAGE_TOKEN}} | |
| files: docs/storybook/coverage | |
| - uses: preactjs/compressed-size-action@v2 | |
| with: | |
| repo-token: "${{ secrets.GITHUB_TOKEN }}" | |
| install-script: "pnpm install --frozen-lockfile --filter react-compare-slider" | |
| build-script: "build" | |
| cwd: lib |