Skip to content

Commit

Permalink
Merge branch 'main' into test-pr-flow
Browse files Browse the repository at this point in the history
  • Loading branch information
brichbash authored Jun 28, 2024
2 parents 7731f35 + 1af31bb commit 014c14b
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 4 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Eslint
on:
workflow_dispatch:
pull_request:
branches:
- main

jobs:
qodana:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- run: npm install
- run: npm run eslint .
21 changes: 17 additions & 4 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 All @@ -19,4 +32,4 @@ jobs:
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
with:
pr-mode: true
upload-result: true

0 comments on commit 014c14b

Please sign in to comment.