mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-22 13:05:31 +03:00
0e5b948ec1
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@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
|
- 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@1813ca74c3faaa3a2da2070b9b8a0b3e7373a0d8 # v2.21.0
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.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@1813ca74c3faaa3a2da2070b9b8a0b3e7373a0d8 # v2.21.0
|