set minimumReleaseAge to 7 days to protect against supply chain attacks #3653
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: Build the app and run unit and e2e tests | |
| on: | |
| # Trigger push only on the main branch to avoid duplicate runs on PRs | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| build: | |
| timeout-minutes: 60 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22.22.0" | |
| - name: Enable Corepack | |
| run: corepack enable | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Install Playwright Browsers | |
| run: pnpm playwright install --with-deps | |
| - name: Build app | |
| run: pnpm build | |
| - name: Run Playwright tests | |
| run: pnpm test:e2e | |
| - name: Run Unit tests | |
| run: pnpm test:unit |