mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 13:45:35 +03:00
9a464b7522
Signed-off-by: nextcloud-android-bot <android@nextcloud.com>
49 lines
1.5 KiB
YAML
49 lines
1.5 KiB
YAML
# synced from @nextcloud/android-config
|
|
name: "CodeQL"
|
|
|
|
on:
|
|
push:
|
|
branches: [ "master", "main", "stable-*" ]
|
|
pull_request:
|
|
branches: [ "master", "main" ]
|
|
schedule:
|
|
- cron: '24 18 * * 3'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze
|
|
runs-on: ubuntu-22.04
|
|
permissions:
|
|
actions: read
|
|
contents: read
|
|
security-events: write
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
language: [ 'java' ]
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
|
- name: Set Swap Space
|
|
uses: pierotofy/set-swap-space@49819abfb41bd9b44fb781159c033dba90353a7c # v1.0
|
|
with:
|
|
swap-size-gb: 10
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@e5f05b81d5b6ff8cfa111c80c22c5fd02a384118 # v3.23.0
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0
|
|
with:
|
|
distribution: "temurin"
|
|
java-version: 17
|
|
- name: Assemble
|
|
run: |
|
|
mkdir -p "$HOME/.gradle"
|
|
echo "org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" > "$HOME/.gradle/gradle.properties"
|
|
./gradlew assembleDebug
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@e5f05b81d5b6ff8cfa111c80c22c5fd02a384118 # v3.23.0
|