File tree Expand file tree Collapse file tree 9 files changed +134
-22
lines changed Expand file tree Collapse file tree 9 files changed +134
-22
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,11 @@ concurrency:
45
45
group : bench-${{ github.event_name }}-${{ github.event.pull_request.number || github.event.after }}
46
46
47
47
jobs :
48
+ dump-unicode-data :
49
+ uses : ./.github/workflows/unicode-dump.yml
48
50
benchmark-matrix :
51
+ needs :
52
+ - dump-unicode-data
49
53
strategy :
50
54
matrix :
51
55
include :
86
90
- name : Cache unicode data
87
91
uses : actions/cache@v4
88
92
with :
93
+ fail-on-cache-miss : true
89
94
path : unicode_dump
90
95
key : unicode-dump-${{ hashFiles('unicode_dump/*') }}
91
96
restore-keys : |
Original file line number Diff line number Diff line change 39
39
- name : Cache unicode data
40
40
uses : actions/cache@v4
41
41
with :
42
+ fail-on-cache-miss : true
42
43
path : unicode_dump
43
44
key : unicode-dump-${{ hashFiles('unicode_dump/*') }}
44
45
restore-keys : |
Original file line number Diff line number Diff line change 56
56
- name : Cache unicode data
57
57
uses : actions/cache@v4
58
58
with :
59
+ fail-on-cache-miss : true
59
60
path : unicode_dump
60
61
key : unicode-dump-${{ hashFiles('unicode_dump/*') }}
61
62
restore-keys : |
65
66
with :
66
67
gradle-version : wrapper
67
68
- name : Build
68
- run : ./gradlew --no-daemon --info ${{ inputs.task }} koverXmlReport -x :benchmark:benchmark
69
+ run : ./gradlew --no-daemon --info ${{ inputs.task }} koverXmlReport -x :benchmark:benchmark --build-cache
69
70
- name : Upload coverage reports to Codecov
70
71
if : inputs.upload-code-coverage && github.actor != 'dependabot[bot]'
71
72
uses : codecov/codecov-action@v4
Original file line number Diff line number Diff line change 8
8
jobs :
9
9
upload :
10
10
runs-on : ubuntu-latest
11
- if : github.event.workflow_run.actor.name != 'dependabot[bot]' && github.repository == 'OptimumCode/json-schema-validator'
11
+ if : github.event.workflow_run.actor.name != 'dependabot[bot]' && github.repository == 'OptimumCode/json-schema-validator' && github.event.workflow_run.conclusion == 'success'
12
12
steps :
13
13
- name : ' Checkout Repository'
14
14
uses : actions/checkout@v4
21
21
name : coverage-reports
22
22
path : reports/
23
23
run_id : ${{ github.event.workflow_run.id }}
24
- - name : Download PR number
25
- uses : dawidd6/action-download-artifact@v6
26
- with :
27
- name : pr-number
28
- path : ' .'
29
- run_id : ${{ github.event.workflow_run.id }}
30
24
- name : Upload coverage reports to Codecov
31
25
uses : codecov/codecov-action@v4
32
26
with :
Original file line number Diff line number Diff line change
1
+ name : " CodeQL"
2
+
3
+ on :
4
+ push :
5
+ branches : [ "main" ]
6
+ pull_request :
7
+ branches : [ "main" ]
8
+ schedule :
9
+ - cron : ' 19 19 * * 6'
10
+
11
+ jobs :
12
+ dump-unicode-data :
13
+ uses : ./.github/workflows/unicode-dump.yml
14
+ analyze :
15
+ needs :
16
+ - dump-unicode-data
17
+ runs-on : ubuntu-latest
18
+ timeout-minutes : 30
19
+ permissions :
20
+ # required for all workflows
21
+ security-events : write
22
+
23
+ # required to fetch internal or private CodeQL packs
24
+ packages : read
25
+
26
+ # only required for workflows in private repositories
27
+ actions : read
28
+ contents : read
29
+ env :
30
+ LANGUAGE : java-kotlin
31
+ steps :
32
+ - name : Checkout repository
33
+ uses : actions/checkout@v4
34
+
35
+ # Initializes the CodeQL tools for scanning.
36
+ - name : Initialize CodeQL
37
+ uses : github/codeql-action/init@v3
38
+ with :
39
+ languages : ${{ env.LANGUAGE }}
40
+ build-mode : manual
41
+ # Build
42
+ - uses : actions/setup-java@v4
43
+ with :
44
+ distribution : temurin
45
+ java-version-file : .java-version
46
+ - name : Validate Gradle Wrapper
47
+ uses : gradle/actions/wrapper-validation@v3
48
+ - name : Cache konan
49
+ uses : actions/cache@v4
50
+ with :
51
+ path : ~/.konan
52
+ key : ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
53
+ restore-keys : |
54
+ ${{ runner.os }}-gradle-
55
+ - name : Cache unicode data
56
+ uses : actions/cache@v4
57
+ with :
58
+ fail-on-cache-miss : true
59
+ path : unicode_dump
60
+ key : unicode-dump-${{ hashFiles('unicode_dump/*') }}
61
+ restore-keys : |
62
+ unicode-dump-
63
+ - name : Setup Gradle
64
+ uses : gradle/actions/setup-gradle@v3
65
+ with :
66
+ gradle-version : wrapper
67
+ - name : Build
68
+ run : ./gradlew --no-daemon -S -Dorg.gradle.dependency.verification=off -Dorg.gradle.warning.mode=none testClasses
69
+
70
+ # Perform analysis
71
+ - name : Perform CodeQL Analysis
72
+ uses : github/codeql-action/analyze@v3
73
+ with :
74
+ category : " /language:${{ env.LANGUAGE }}"
Original file line number Diff line number Diff line change @@ -11,7 +11,11 @@ concurrency:
11
11
cancel-in-progress : true
12
12
13
13
jobs :
14
+ dump-unicode-data :
15
+ uses : ./.github/workflows/unicode-dump.yml
14
16
reviewdog :
17
+ needs :
18
+ - dump-unicode-data
15
19
permissions :
16
20
pull-requests : write
17
21
runs-on : ubuntu-latest
34
38
- name : Cache unicode data
35
39
uses : actions/cache@v4
36
40
with :
41
+ fail-on-cache-miss : true
37
42
path : unicode_dump
38
43
key : unicode-dump-${{ hashFiles('unicode_dump/*') }}
39
44
restore-keys : |
51
56
REVIEWDOG_GITHUB_API_TOKEN : ${{ secrets.GITHUB_TOKEN }}
52
57
run : reviewdog -tee -reporter=github-pr-review
53
58
check-pr :
59
+ needs :
60
+ - dump-unicode-data
54
61
uses : ./.github/workflows/build-and-test.yml
55
62
with :
56
63
collect-code-coverage : true
69
76
dangerfile : Dangerfile.df.kts
70
77
env :
71
78
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
72
- store-pr-number :
73
- runs-on : ubuntu-latest
74
- steps :
75
- - name : Save PR number
76
- env :
77
- PR_NUMBER : ${{ github.event.number }}
78
- run : |
79
- mkdir -p ./pr
80
- echo $PR_NUMBER > ./pr/pr_number
81
- - uses : actions/upload-artifact@v4
82
- with :
83
- name : pr-number
84
- path : pr/
85
-
Original file line number Diff line number Diff line change 24
24
version-source : file
25
25
version-file : ${{ env.VERSION_FILE }}
26
26
version-file-extraction-pattern : ${{ env.VERSION_PATTERN }}
27
+ dump-unicode-data :
28
+ uses : ./.github/workflows/unicode-dump.yml
27
29
build-and-test :
30
+ needs :
31
+ - dump-unicode-data
28
32
uses : ./.github/workflows/build-and-test.yml
29
33
publish_artifacts :
30
34
needs :
55
59
- name : Cache unicode data
56
60
uses : actions/cache@v4
57
61
with :
62
+ fail-on-cache-miss : true
58
63
path : unicode_dump
59
64
key : unicode-dump-${{ hashFiles('unicode_dump/*') }}
60
65
restore-keys : |
Original file line number Diff line number Diff line change 13
13
- ' .github/workflows/snapshot_release.yml'
14
14
15
15
jobs :
16
+ dump-unicode-data :
17
+ uses : ./.github/workflows/unicode-dump.yml
16
18
build-and-test :
19
+ needs :
20
+ - dump-unicode-data
17
21
uses : ./.github/workflows/build-and-test.yml
18
22
with :
19
23
upload-code-coverage : true
47
51
- name : Cache unicode data
48
52
uses : actions/cache@v4
49
53
with :
54
+ fail-on-cache-miss : true
50
55
path : unicode_dump
51
56
key : unicode-dump-${{ hashFiles('unicode_dump/*') }}
52
57
restore-keys : |
Original file line number Diff line number Diff line change
1
+ name : Dump information for Unicode characters
2
+
3
+ on :
4
+ workflow_call :
5
+
6
+ jobs :
7
+ generate-dump :
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - name : ' Checkout Repository'
11
+ uses : actions/checkout@v4
12
+ - uses : actions/setup-java@v4
13
+ with :
14
+ distribution : temurin
15
+ java-version-file : .java-version
16
+ - name : Cache unicode data
17
+ id : cache
18
+ uses : actions/cache@v4
19
+ with :
20
+ path : unicode_dump
21
+ key : unicode-dump-${{ hashFiles('unicode_dump/*') }}
22
+ restore-keys : |
23
+ unicode-dump-
24
+ - name : Validate Gradle Wrapper
25
+ if : ${{ !steps.cache.outputs.cache-hit }}
26
+ uses : gradle/actions/wrapper-validation@v3
27
+ - name : Setup Gradle
28
+ if : ${{ !steps.cache.outputs.cache-hit }}
29
+ uses : gradle/actions/setup-gradle@v3
30
+ with :
31
+ gradle-version : wrapper
32
+ - name : Build
33
+ if : ${{ !steps.cache.outputs.cache-hit }}
34
+ run : ./gradlew :json-schema-validator:dumpCharacterData
You can’t perform that action at this time.
0 commit comments