Skip to content

Test pr flow

Test pr flow #61

Workflow file for this run

name: Qodana
on:
push:
workflow_dispatch:
pull_request:
jobs:
qodana:
runs-on: ubuntu-latest
steps:
- name: Checkout PR
uses: actions/checkout@v4
if: github.event_name == 'pull_request' || github.event.pull_request.merged == true
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: ${{ github.event.pull_request.commits }}
- name: Checkout
uses: actions/checkout@v4
if: github.event_name != 'pull_request'
with:
fetch-depth: 0
- name: Get one more commit so Qodana we can identify the changes
if: github.event_name == 'pull_request'
run: git fetch --deepen=1
- uses: actions/setup-node@v2
with:
node-version: '16'
- run: npm install
- name: 'Qodana Scan'
uses: JetBrains/[email protected]
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
with:
upload-result: true