Add coverage step to Qodana workflow and create qodana.yaml configura… #27
This file contains 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: 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 }} |