Skip to content

Commit 0bf16ba

Browse files
authored
Merge pull request #89 from Dai1678/refactor/build_ci
combine build CI workflow
2 parents 80a1db7 + 68c4305 commit 0bf16ba

File tree

2 files changed

+22
-47
lines changed

2 files changed

+22
-47
lines changed

.github/workflows/build.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Run build
1+
name: Run build and Github CodeQL
22

33
on:
44
pull_request:
@@ -15,11 +15,32 @@ jobs:
1515
build:
1616
runs-on: ubuntu-latest
1717
timeout-minutes: 30
18+
permissions:
19+
security-events: write
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
include:
24+
- language: java-kotlin
25+
build-mode: manual
1826

1927
steps:
2028
- uses: actions/checkout@v4
2129

2230
- uses: ./.github/actions/setup-java
31+
if: matrix.language == 'java-kotlin'
32+
33+
- name: Initialize CodeQL
34+
uses: github/codeql-action/init@v3
35+
with:
36+
languages: ${{ matrix.language }}
37+
build-mode: ${{ matrix.build-mode }}
2338

2439
- name: Build with Gradle
40+
if: matrix.language == 'java-kotlin'
2541
run: ./gradlew assembleDebug --no-daemon --stacktrace
42+
43+
- name: Perform CodeQL Analysis
44+
uses: github/codeql-action/analyze@v3
45+
with:
46+
category: "/language:${{matrix.language}}"

.github/workflows/codeql.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)