mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-24 22:15:41 +03:00
2cb7039d5a
Signed-off-by: nextcloud-android-bot <android@nextcloud.com>
56 lines
1.8 KiB
YAML
56 lines
1.8 KiB
YAML
# synced from @nextcloud/android-config
|
|
|
|
# SPDX-FileCopyrightText: 2022-2024 Nextcloud GmbH and Nextcloud contributors
|
|
# SPDX-FileCopyrightText: 2023-2024 Andy Scherzinger <info@andy-scherzinger.de>
|
|
# SPDX-FileCopyrightText: 2022 Tobias Kaminsky <tobias@kaminsky.me>
|
|
# SPDX-FileCopyrightText: 2022 Álvaro Brey <alvaro@alvarobrey.com>
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
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@05963f47d870e2cb19a537396c1f668a348c7d8f # v3.24.8
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
|
|
with:
|
|
distribution: "temurin"
|
|
java-version: 17
|
|
- name: Assemble
|
|
run: |
|
|
mkdir -p "$HOME/.gradle"
|
|
echo "org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" > "$HOME/.gradle/gradle.properties"
|
|
./gradlew assembleDebug
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@05963f47d870e2cb19a537396c1f668a348c7d8f # v3.24.8
|