Skip to content

Add coverage step to Qodana workflow and create qodana.yaml configura… #27

Add coverage step to Qodana workflow and create qodana.yaml configura…

Add coverage step to Qodana workflow and create qodana.yaml configura… #27

Workflow file for this run

name: Qodana
on:
push:
pull_request:
workflow_dispatch:
jobs:
qodana:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2
# uses version from "packageManager" field in package.json
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
cache: pnpm
node-version: ${{ matrix.node-version }}
- name: Install Packages
run: |
pnpm install --frozen-lockfile
env:
CYPRESS_CACHE_FOLDER: .cache/Cypress
- name: Run coverage
run: |
pnpm run ci --coverage
- name: 'Qodana Scan'
uses: JetBrains/qodana-action@main
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}