mirror of
https://github.com/bitfireAT/davx5-ose.git
synced 2025-12-23 23:17:50 -05:00
* Cache configurations per job * Use separate job for Dependency submission * Use GRADLE_OPTS to enable build and configuration cache * Test .android * Cache .android for configuration cache * Disable CodeQL for PRs * Fix AVD path
60 lines
1.5 KiB
YAML
60 lines
1.5 KiB
YAML
name: "CodeQL"
|
|
|
|
on:
|
|
push:
|
|
branches: [ main-ose ]
|
|
# pull_request:
|
|
# The branches below must be a subset of the branches above
|
|
# branches: [ main-ose ]
|
|
schedule:
|
|
- cron: '22 10 * * 1'
|
|
|
|
concurrency:
|
|
group: codeql-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
actions: read
|
|
contents: read
|
|
security-events: write
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
language: [ 'java' ]
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
- uses: actions/setup-java@v5
|
|
with:
|
|
distribution: temurin
|
|
java-version: 21
|
|
- uses: gradle/actions/setup-gradle@v5
|
|
with:
|
|
cache-encryption-key: ${{ secrets.gradle_encryption_key }}
|
|
cache-read-only: true # gradle user home cache is generated by test jobs
|
|
|
|
# Initializes the CodeQL tools for scanning.
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@v4
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
|
|
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
|
|
# If this step fails, then you should remove it and run the build manually (see below)
|
|
#- name: Autobuild
|
|
# uses: github/codeql-action/autobuild@v2
|
|
|
|
- name: Build
|
|
run: ./gradlew --no-daemon app:compileOseDebugSource
|
|
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@v4
|
|
with:
|
|
category: "/language:${{matrix.language}}"
|