Skip to content

Commit a360c86

Browse files
authored
Replace the call to the autobuild action with our custom build steps (#668)
1 parent 245426d commit a360c86

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: "Code Scanning"
33
on:
44
schedule:
55
- cron: '0 0 * * *'
6+
workflow_dispatch:
67

78
jobs:
89
CodeQL-Build:
@@ -18,8 +19,29 @@ jobs:
1819
with:
1920
languages: java
2021

21-
- name: Autobuild
22-
uses: github/codeql-action/autobuild@v1
22+
- name: Set up JDK 8
23+
uses: actions/setup-java@v1
24+
with:
25+
java-version: 8
26+
27+
- name: Checkout
28+
uses: actions/checkout@v2
29+
30+
- name: Grant execute permission for gradlew
31+
run: chmod +x gradlew
32+
33+
- name: Cache Gradle
34+
uses: actions/cache@v2
35+
with:
36+
path: |
37+
~/.gradle/caches
38+
~/.gradle/wrapper
39+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
40+
restore-keys: |
41+
${{ runner.os }}-gradle-
42+
43+
- name: Build and Install packages
44+
run: ./gradlew assemble check
2345

2446
- name: Perform CodeQL Analysis
2547
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)