feat(core): migrate to Angular 19, fix audit vulnerabilities, and convert components to standalone, replace input output decorators with signal-based inputs and add trivy workflow #164
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
| on: pull_request | |
| name: Lint npm packages on pull request | |
| jobs: | |
| npmLint: | |
| name: npm lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout latest code | |
| uses: actions/checkout@v2 | |
| - name: Cache node modules | |
| id: cache-nodemodules | |
| uses: actions/cache@v4 | |
| env: | |
| cache-name: ${{ github.event.repository.name }} | |
| with: | |
| # caching node_modules | |
| path: node_modules | |
| key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-build-${{ env.cache-name }}- | |
| - name: Run npm install | |
| if: steps.cache-nodemodules.outputs.cache-hit != 'true' | |
| run: npm ci --ignore-scripts | |
| - name: Run test | |
| run: npm run test:ci | |
| - name: Comment Test Coverage | |
| uses: AthleticNet/comment-test-coverage@1.1 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| path: coverage/workflows-creator/coverage-summary.json | |
| title: Karma Test Coverage |