Merge pull request #10379 from nextcloud/repo-sync/android-common/master

🔄 Synced file(s) with nextcloud/android-common
This commit is contained in:
Tobias Kaminsky 2022-06-13 13:40:44 +02:00 committed by GitHub
commit fcbbd45ec7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,11 +2,11 @@ name: "CodeQL"
on:
push:
branches: [ master, stable-3.* ]
branches: [ "master", "stable-*" ]
pull_request:
branches: [ master ]
branches: [ "master" ]
schedule:
- cron: '42 10 * * 4'
- cron: '24 18 * * 3'
jobs:
analyze:
@ -16,25 +16,18 @@ jobs:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'java' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support
steps:
- name: Checkout repository
uses: actions/checkout@v2
# Initializes the CodeQL tools for scanning.
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# Build
- name: Set up JDK 11
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: "temurin"
@ -43,8 +36,6 @@ jobs:
run: |
mkdir -p $HOME/.gradle
echo "org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" > $HOME/.gradle/gradle.properties
./gradlew assembleGplayDebug
# Run analysis
./gradlew assembleDebug
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2