nextcloud-talk-android/.github/workflows/codeql.yml

50 lines
1.5 KiB
YAML
Raw Normal View History

# synced from @nextcloud/android-config
2022-06-09 11:47:55 +03:00
name: "CodeQL"
on:
push:
branches: [ "master", "main", "stable-*" ]
2022-06-09 11:47:55 +03:00
pull_request:
branches: [ "master", "main" ]
2022-06-09 11:47:55 +03:00
schedule:
- cron: '24 18 * * 3'
permissions:
contents: read
2022-06-09 11:47:55 +03:00
jobs:
analyze:
name: Analyze
runs-on: ubuntu-22.04
2022-06-09 11:47:55 +03:00
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'java' ]
2022-06-09 11:47:55 +03:00
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@689fdc5193eeb735ecb2e52e819e3382876f93f4 # v2.22.6
with:
languages: ${{ matrix.language }}
- name: Set up JDK 17
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.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@689fdc5193eeb735ecb2e52e819e3382876f93f4 # v2.22.6