Skip to content

Add Gradle plugin CI, tests, and publishing #220

Add Gradle plugin CI, tests, and publishing

Add Gradle plugin CI, tests, and publishing #220

name: "Code scanning - action"
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '0 19 * * 1'
jobs:
CodeQL-Build:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
fetch-depth: 2
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}
- name: Set up Java
uses: actions/setup-java@v5
with:
java-version: 17
distribution: temurin
cache: 'maven'
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: java
- name: Build with Maven
# CodeQL only needs the source built for analysis; the maven-plugin's invoker
# ITs already run in the main Build workflow (see maven-install action).
uses: ./.github/actions/maven-install
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4