|
47 | 47 | - name: Check Prettier formatting |
48 | 48 | run: npm run format |
49 | 49 |
|
| 50 | + qlty: |
| 51 | + name: Qlty Check |
| 52 | + runs-on: ubuntu-latest |
| 53 | + timeout-minutes: 3 |
| 54 | + |
| 55 | + steps: |
| 56 | + - name: Checkout code |
| 57 | + uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 |
| 58 | + |
| 59 | + - name: Install qlty |
| 60 | + uses: qltysh/qlty-action/install@06730ef41b86b073c3813c0fc07a0c734980ce5d |
| 61 | + |
| 62 | + - name: Run qlty check |
| 63 | + run: qlty check |
| 64 | + |
| 65 | + - name: Run qlty code smells analysis |
| 66 | + run: qlty smells |
| 67 | + |
50 | 68 | build: |
51 | 69 | name: Build & Test |
52 | 70 | runs-on: ubuntu-latest |
|
73 | 91 |
|
74 | 92 | - name: Run tests |
75 | 93 | run: npm test |
| 94 | + env: |
| 95 | + VSC_JUPYTER_INSTRUMENT_CODE_FOR_COVERAGE: true |
| 96 | + |
| 97 | + - name: Upload coverage to Codecov |
| 98 | + uses: codecov/codecov-action@v5 |
| 99 | + with: |
| 100 | + token: ${{ secrets.CODECOV_TOKEN }} |
| 101 | + files: coverage/lcov.info |
| 102 | + fail_ci_if_error: true |
| 103 | + |
| 104 | + - name: Upload test results to Codecov |
| 105 | + if: '!cancelled()' |
| 106 | + uses: codecov/test-results-action@v1 |
| 107 | + with: |
| 108 | + token: ${{ secrets.CODECOV_TOKEN }} |
| 109 | + files: test-report.xml |
| 110 | + fail_ci_if_error: true |
76 | 111 |
|
77 | 112 | - name: Check dependencies |
78 | 113 | run: npm run checkDependencies |
@@ -127,3 +162,51 @@ jobs: |
127 | 162 |
|
128 | 163 | - name: Run spell check |
129 | 164 | run: npm run spell-check |
| 165 | + |
| 166 | + audit-prod: |
| 167 | + name: Audit - Production |
| 168 | + runs-on: ubuntu-latest |
| 169 | + timeout-minutes: 15 |
| 170 | + steps: |
| 171 | + - name: Checkout |
| 172 | + uses: actions/checkout@v5 |
| 173 | + |
| 174 | + - name: Setup Node.js |
| 175 | + uses: actions/setup-node@v5 |
| 176 | + with: |
| 177 | + cache: 'npm' |
| 178 | + node-version: ${{ env.NODE_VERSION }} |
| 179 | + registry-url: 'https://npm.pkg.github.com' |
| 180 | + scope: '@deepnote' |
| 181 | + |
| 182 | + - name: Install dependencies |
| 183 | + run: npm ci --prefer-offline --no-audit |
| 184 | + env: |
| 185 | + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 186 | + |
| 187 | + - name: Run audit for production dependencies |
| 188 | + run: npm audit --production |
| 189 | + |
| 190 | + audit-all: |
| 191 | + name: Audit - All |
| 192 | + runs-on: ubuntu-latest |
| 193 | + timeout-minutes: 15 |
| 194 | + steps: |
| 195 | + - name: Checkout |
| 196 | + uses: actions/checkout@v5 |
| 197 | + |
| 198 | + - name: Setup Node.js |
| 199 | + uses: actions/setup-node@v5 |
| 200 | + with: |
| 201 | + cache: 'npm' |
| 202 | + node-version: ${{ env.NODE_VERSION }} |
| 203 | + registry-url: 'https://npm.pkg.github.com' |
| 204 | + scope: '@deepnote' |
| 205 | + |
| 206 | + - name: Install dependencies |
| 207 | + run: npm ci --prefer-offline --no-audit |
| 208 | + env: |
| 209 | + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 210 | + |
| 211 | + - name: Run audit for all dependencies |
| 212 | + run: npm audit |
0 commit comments