updated docs #44
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: SquibView CI | |
| on: | |
| push: | |
| branches: [ main ] # Or master, or your default branch | |
| pull_request: | |
| branches: [ main ] # Or master, or your default branch | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| strategy: | |
| matrix: | |
| node-version: [18.x] # You can add other versions like 16.x, 20.x if needed | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build project | |
| run: npm run build | |
| - name: Run unit tests | |
| run: npm run test # Runs 'jest --config jest.config.cjs --coverage' | |
| timeout-minutes: 3 | |
| # E2E tests are run locally only (requires Chrome/Puppeteer setup) | |
| # Commented out to simplify CI - E2E tests verified locally before push | |
| # - name: Run E2E tests | |
| # run: npm run test:e2e | |