build(deps): bump the react-router-versions group in /frontend with 5… #418
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 solution | |
| permissions: read-all | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_call: {} | |
| workflow_dispatch: {} | |
| env: | |
| CI: true | |
| jobs: | |
| detect-changes: | |
| runs-on: ubuntu-latest | |
| if: ${{ github.repository == 'DTS-STN/canada-disability-benefit' }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - id: frontend | |
| uses: dorny/paths-filter@v3 | |
| with: | |
| filters: | | |
| src: | |
| - frontend/** | |
| - id: gitops | |
| uses: dorny/paths-filter@v3 | |
| with: | |
| filters: | | |
| src: | |
| - gitops/** | |
| outputs: | |
| frontend-changed: ${{ steps.frontend.outputs.src }} | |
| gitops-changed: ${{ steps.gitops.outputs.src }} | |
| test-frontend: | |
| runs-on: ubuntu-latest | |
| needs: detect-changes | |
| if: ${{ needs.detect-changes.outputs.frontend-changed == 'true' }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.x | |
| - run: npm clean-install | |
| working-directory: frontend/ | |
| - run: npm run typecheck | |
| working-directory: frontend/ | |
| - run: npm run format:check | |
| working-directory: frontend/ | |
| - run: npm run lint:check | |
| working-directory: frontend/ | |
| - run: npm run test -- --coverage | |
| working-directory: frontend/ | |
| - run: npx playwright install chromium --with-deps | |
| working-directory: frontend/ | |
| - run: npm run test:e2e | |
| working-directory: frontend/ | |
| build-frontend: | |
| runs-on: ubuntu-latest | |
| needs: detect-changes | |
| if: ${{ needs.detect-changes.outputs.frontend-changed == 'true' }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.x | |
| - run: npm clean-install | |
| working-directory: frontend/ | |
| - run: podman build --file containerfile . | |
| working-directory: frontend/ |