Skip to content

Commit

Permalink
Update qodana.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
brichbash authored Jun 21, 2024
1 parent 33bbe67 commit 1af31bb
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/qodana.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,28 @@
name: Qodana
on:
push:
workflow_dispatch:
pull_request:
branches:
- main


jobs:
qodana:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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'
Expand Down

0 comments on commit 1af31bb

Please sign in to comment.