Skip to content

Commit

Permalink
build: Fix CodeQL run
Browse files Browse the repository at this point in the history
Running codeQL in same job as build
  • Loading branch information
yuriytkach committed Dec 5, 2023
1 parent 1ee75a1 commit 63724b6
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions .github/workflows/gradle-no-native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
build:
name: Build
name: Build and CodeQL Analysis
runs-on: ubuntu-latest

steps:
Expand All @@ -23,12 +23,20 @@ jobs:
distribution: 'temurin'
cache: 'gradle'

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: java

- name: Grant permissions
run: chmod +x gradlew

- name: Build
run: ./gradlew assemble -x test

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

unit-tests:
name: Unit Tests
needs: build
Expand Down Expand Up @@ -83,23 +91,6 @@ jobs:
path: |
build/test-results/quarkusIntTest/*.xml
code-analysis:
name: CodeQL Analysis
needs: build
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: java

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

event_file:
name: "Event File"
runs-on: ubuntu-latest
Expand Down

0 comments on commit 63724b6

Please sign in to comment.