Skip to content

Switch to new setup-gradle github action #12

Switch to new setup-gradle github action

Switch to new setup-gradle github action #12

Workflow file for this run

name: 'CodeQL'
on:
push:
branches: [main]
pull_request:
# The branches below must be a subset of the branches above
branches: [main]
schedule:
- cron: '17 23 * * 3'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
name: Analyze
runs-on: macos-15
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Java Version
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@aa23778d2dc6f6556fcc7164e99babbd8c3134e4 # pin@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # pin@v2
with:
source-root: ${{ github.workspace }}/plugin-build
languages: 'java-kotlin'
build-mode: manual
- name: Build Gradle Plugin
run: |
./gradlew buildForCodeQL --no-daemon --no-build-cache
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # pin@v2
with:
checkout_path: ${{ github.workspace }}/plugin-build