feat: persist analysis reordering via drag-and-drop #218
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: Run CI checks | |
| on: push | |
| env: | |
| PRIMARY_NODE_VERSION: 20 | |
| jobs: | |
| lint: | |
| name: Lint code | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v2 | |
| with: | |
| version: 8 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.PRIMARY_NODE_VERSION }} | |
| cache: 'pnpm' | |
| - run: pnpm install | |
| - run: pnpm lint | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v2 | |
| with: | |
| version: 8 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.PRIMARY_NODE_VERSION }} | |
| cache: 'pnpm' | |
| - run: pnpm install | |
| - run: pnpm build | |
| component-test: | |
| name: Component tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v2 | |
| with: | |
| version: 8 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.PRIMARY_NODE_VERSION }} | |
| cache: 'pnpm' | |
| # Cache Cypress binary | |
| - name: Cache Cypress | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.cache/Cypress | |
| key: cypress-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }} | |
| - run: pnpm install | |
| # Ensure Cypress binary is installed | |
| - name: Verify Cypress binary | |
| run: pnpm exec cypress install | |
| - name: Create empty pages directory for Next.js compatibility | |
| run: mkdir -p pages | |
| - run: pnpm component:headless | |
| e2e-test: | |
| name: End-to-end tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v2 | |
| with: | |
| version: 8 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.PRIMARY_NODE_VERSION }} | |
| cache: 'pnpm' | |
| # Cache Cypress binary | |
| - name: Cache Cypress | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.cache/Cypress | |
| key: cypress-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }} | |
| - run: pnpm install | |
| # Ensure Cypress binary is installed | |
| - name: Verify Cypress binary | |
| run: pnpm exec cypress install | |
| - run: pnpm e2e:headless |