Optimize PR builds (#2273)

* Optimize PR build

* Update codeql.yml
This commit is contained in:
Alexander Brandes 2023-06-07 00:51:56 +02:00 committed by GitHub
parent c5f66c342b
commit 832f93c0f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -16,9 +16,10 @@ jobs:
uses: actions/setup-java@v3 uses: actions/setup-java@v3
with: with:
distribution: temurin distribution: temurin
cache: gradle
java-version: 17 java-version: 17
- name: Build on ${{ matrix.os }} - name: Build on ${{ matrix.os }}
run: ./gradlew clean build --no-daemon run: ./gradlew build -s
- name: Archive artifacts - name: Archive artifacts
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:

View File

@ -1,5 +1,7 @@
name: "CodeQL" name: "CodeQL"
on: on:
push:
branches: [main]
pull_request: pull_request:
# The branches below must be a subset of the branches above # The branches below must be a subset of the branches above
branches: [main] branches: [main]