fix: package.json to reduce vulnerabilities #81
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: Code coverage and quality | |
| on: [ "push", "pull_request" ] | |
| jobs: | |
| quality-coverage-reporter: | |
| runs-on: ubuntu-latest | |
| name: quality-coverage-reporter | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| fetch-depth: 0 | |
| - name: 'Qodana Scan' | |
| uses: JetBrains/qodana-action@v2024.2 | |
| env: | |
| QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Run unit tests and generate coverage | |
| run: npm run coverage:unit | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| slug: jorgejch/dex-arbitrage | |