Test pr flow #61
Workflow file for this run
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: | |
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 |