fixed changeset version cailing in CI beacuse of js-yaml dependency b… #61
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: Web · Tests | |
| on: | |
| push: | |
| paths: | |
| - "apps/adr-manager/**" | |
| - "packages/**" | |
| - "pnpm-lock.yaml" | |
| - ".github/workflows/web-tests.yml" | |
| workflow_dispatch: | |
| concurrency: | |
| group: web-tests-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| unit-tests: | |
| name: Vitest unit tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: ".nvmrc" | |
| - uses: pnpm/action-setup@v6 | |
| with: | |
| cache: true | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm --filter adr-manager test | |
| e2e-tests: | |
| name: Cypress e2e (Chrome) | |
| runs-on: ubuntu-latest | |
| # Image Node version should match .nvmrc, update both together | |
| container: cypress/browsers:node-22.21.0-chrome-141.0.7390.107-1-ff-144.0-edge-141.0.3537.92-1 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: ".nvmrc" | |
| - uses: pnpm/action-setup@v6 | |
| with: | |
| cache: true | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm --filter adr-manager exec cypress verify | |
| - name: Run Cypress | |
| run: | | |
| pnpm --filter adr-manager start & | |
| pnpm --filter adr-manager e2e:test-ci |