99# the `language` matrix defined below to confirm you have the correct set of
1010# supported CodeQL languages.
1111#
12- name : ' CodeQL'
12+ name : ' CodeQL Scannings '
1313
1414on :
1515 push :
1616 branches :
17- - main
17+ - develop
18+
1819 pull_request :
1920 branches :
20- - main
21- schedule :
22- - cron : ' 0 14 * * 6'
21+ - develop
2322
2423jobs :
2524 analyze :
@@ -33,37 +32,31 @@ jobs:
3332 strategy :
3433 fail-fast : false
3534 matrix :
36- language : ['java', 'typescript']
35+ language :
36+ - java
37+ - typescript
3738
3839 steps :
3940 - name : Checkout repository
4041 uses : actions/checkout@v3
4142
42- # Initializes the CodeQL tools for scanning.
43+ - name : Set up JDK 11
44+ uses : actions/setup-java@v1
45+ if : matrix.language == 'java'
46+ with :
47+ java-version : 11
48+
4349 - name : Initialize CodeQL
4450 uses : github/codeql-action/init@v2
4551 with :
4652 languages : ${{ matrix.language }}
47- # If you wish to specify custom queries, you can do so here or in a config file.
48- # By default, queries listed here will override any specified in a config file.
49- # Prefix the list here with "+" to use these queries and those in the config file.
50- # queries: ./path/to/local/query, your-org/your-repo/queries@main
5153
52- # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
53- # If this step fails, then you should remove it and run the build manually (see below)
54- - name : Autobuild
54+ - name : Auto build typescript
55+ if : matrix.language == 'typescript'
5556 uses : github/codeql-action/autobuild@v2
5657
57- # ℹ️ Command-line programs to run using the OS shell.
58- # 📚 https://git.io/JvXDl
59-
60- # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
61- # and modify them (or add more) to build your code if your project
62- # uses a compiled language
63-
64- # - run: |
65- # make bootstrap
66- # make release
58+ - if : matrix.language == 'java'
59+ run : mvn install -f core-java/pom.xml -DskipTests
6760
6861 - name : Perform CodeQL Analysis
6962 uses : github/codeql-action/analyze@v2
0 commit comments