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
with:
distribution: temurin
cache: gradle
java-version: 17
- name: Build on ${{ matrix.os }}
run: ./gradlew clean build --no-daemon
run: ./gradlew build -s
- name: Archive artifacts
uses: actions/upload-artifact@v3
with:

View File

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