-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract Unicode dump into separate workflow. Add manual CodeQL workfl…
…ow (#173) This reduces the number of downloads and the load on the service is used for that
- Loading branch information
1 parent
1a05e0d
commit 7286f68
Showing
9 changed files
with
134 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
schedule: | ||
- cron: '19 19 * * 6' | ||
|
||
jobs: | ||
dump-unicode-data: | ||
uses: ./.github/workflows/unicode-dump.yml | ||
analyze: | ||
needs: | ||
- dump-unicode-data | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
permissions: | ||
# required for all workflows | ||
security-events: write | ||
|
||
# required to fetch internal or private CodeQL packs | ||
packages: read | ||
|
||
# only required for workflows in private repositories | ||
actions: read | ||
contents: read | ||
env: | ||
LANGUAGE: java-kotlin | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v3 | ||
with: | ||
languages: ${{ env.LANGUAGE }} | ||
build-mode: manual | ||
# Build | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin | ||
java-version-file: .java-version | ||
- name: Validate Gradle Wrapper | ||
uses: gradle/actions/wrapper-validation@v3 | ||
- name: Cache konan | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.konan | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Cache unicode data | ||
uses: actions/cache@v4 | ||
with: | ||
fail-on-cache-miss: true | ||
path: unicode_dump | ||
key: unicode-dump-${{ hashFiles('unicode_dump/*') }} | ||
restore-keys: | | ||
unicode-dump- | ||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
with: | ||
gradle-version: wrapper | ||
- name: Build | ||
run: ./gradlew --no-daemon -S -Dorg.gradle.dependency.verification=off -Dorg.gradle.warning.mode=none testClasses | ||
|
||
# Perform analysis | ||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v3 | ||
with: | ||
category: "/language:${{ env.LANGUAGE }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Dump information for Unicode characters | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
generate-dump: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Checkout Repository' | ||
uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin | ||
java-version-file: .java-version | ||
- name: Cache unicode data | ||
id: cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: unicode_dump | ||
key: unicode-dump-${{ hashFiles('unicode_dump/*') }} | ||
restore-keys: | | ||
unicode-dump- | ||
- name: Validate Gradle Wrapper | ||
if: ${{ !steps.cache.outputs.cache-hit }} | ||
uses: gradle/actions/wrapper-validation@v3 | ||
- name: Setup Gradle | ||
if: ${{ !steps.cache.outputs.cache-hit }} | ||
uses: gradle/actions/setup-gradle@v3 | ||
with: | ||
gradle-version: wrapper | ||
- name: Build | ||
if: ${{ !steps.cache.outputs.cache-hit }} | ||
run: ./gradlew :json-schema-validator:dumpCharacterData |