From 8b717d49953dee71fad5f2953cba6e8833c3b854 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9C=9F=E5=BF=83?= Date: Tue, 13 Aug 2024 10:06:34 +0800 Subject: [PATCH] feat(ci): add codeql --- .github/workflows/dev.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 29ac35b..146ae6a 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -23,6 +23,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - uses: github/codeql-action/init@v3 + with: + languages: java-kotlin - uses: actions/setup-java@v4 with: distribution: 'zulu' @@ -30,6 +33,9 @@ jobs: cache: 'gradle' - name: Build with Gradle run: ./gradlew clean build + - uses: github/codeql-action/analyze@v3 + with: + category: /language:java-kotlin - uses: actions/upload-artifact@v4 with: name: 'zmusic-bukkit' @@ -41,4 +47,4 @@ jobs: - uses: actions/upload-artifact@v4 with: name: 'zmusic-velocity' - path: zmusic-velocity/build/libs/*.jar \ No newline at end of file + path: zmusic-velocity/build/libs/*.jar