Skip to content

build(deps-dev): bump lodash from 4.17.23 to 4.18.1 in /frontend (#154) #421

build(deps-dev): bump lodash from 4.17.23 to 4.18.1 in /frontend (#154)

build(deps-dev): bump lodash from 4.17.23 to 4.18.1 in /frontend (#154) #421

Workflow file for this run

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/