DEVOPS-403 add step to audit npm packages #43
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: lint | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| jobs: | |
| build: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: '.nvmrc' | |
| - name: Install dependencies and config | |
| run: | | |
| corepack enable | |
| pnpm install | |
| pnpm ioc-generate | |
| - name: Check types | |
| run: pnpm check-types | |
| - name: ESlint | |
| run: pnpm lint | |
| - name: Check formatting | |
| run: pnpm prettier-check |