Skip to content

Commit d5d9f46

Browse files
committed
feat(ci): add PR pipeline and system-test workflows
New workflows: - pr-build.yml: multi-OS build matrix (macOS, Ubuntu, RockyLinux, Debian11) and changed-line/overall coverage gate - pr-check.yml: PR title/body lint + Checkstyle - pr-reviewer.yml: scope-based reviewer auto-assignment - pr-cancel.yml: cancel in-progress runs when PR is closed unmerged - system-test.yml: spin up FullNode and run the system-test suite Existing workflows: - codeql.yml: bump to v4/v5 actions, switch to manual build-mode with JDK 8, add paths-ignore for docs-only changes - math-check.yml: bump checkout/upload-artifact/github-script versions
1 parent 144571a commit d5d9f46

7 files changed

Lines changed: 940 additions & 25 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
# The branches below must be a subset of the branches above
88
branches: [ 'develop' ]
9+
paths-ignore: [ '**/*.md', '.gitignore', '**/.gitignore', '.editorconfig',
10+
'.gitattributes', 'docs/**', 'CHANGELOG', '.github/ISSUE_TEMPLATE/**',
11+
'.github/PULL_REQUEST_TEMPLATE/**', '.github/CODEOWNERS' ]
912
schedule:
1013
- cron: '6 10 * * 0'
1114

@@ -29,36 +32,25 @@ jobs:
2932

3033
steps:
3134
- name: Checkout repository
32-
uses: actions/checkout@v3
35+
uses: actions/checkout@v5
3336

3437
# Initializes the CodeQL tools for scanning.
3538
- name: Initialize CodeQL
36-
uses: github/codeql-action/init@v3
39+
uses: github/codeql-action/init@v4
3740
with:
3841
languages: ${{ matrix.language }}
39-
# If you wish to specify custom queries, you can do so here or in a config file.
40-
# By default, queries listed here will override any specified in a config file.
41-
# Prefix the list here with "+" to use these queries and those in the config file.
42+
build-mode: manual
4243

43-
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
44-
# queries: security-extended,security-and-quality
45-
46-
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
47-
# If this step fails, then you should remove it and run the build manually (see below)
48-
- name: Autobuild
49-
uses: github/codeql-action/autobuild@v3
50-
51-
# ℹ️ Command-line programs to run using the OS shell.
52-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
53-
54-
# If the Autobuild fails above, remove it and uncomment the following three lines.
55-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
44+
- name: Set up JDK 8
45+
uses: actions/setup-java@v5
46+
with:
47+
java-version: '8'
48+
distribution: 'temurin'
5649

57-
# - run: |
58-
# echo "Run, Build Application using script"
59-
# ./location_of_script_within_repo/buildscript.sh
50+
- name: Build
51+
run: ./gradlew build -x test --no-daemon
6052

6153
- name: Perform CodeQL Analysis
62-
uses: github/codeql-action/analyze@v3
54+
uses: github/codeql-action/analyze@v4
6355
with:
6456
category: "/language:${{matrix.language}}"

.github/workflows/math-check.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v5
1616

1717
- name: Check for java.lang.Math usage
1818
id: check-math
@@ -55,14 +55,14 @@ jobs:
5555
5656
- name: Upload findings
5757
if: steps.check-math.outputs.math_found == 'true'
58-
uses: actions/upload-artifact@v4
58+
uses: actions/upload-artifact@v6
5959
with:
6060
name: math-usage-report
6161
path: math_usage.txt
6262

6363
- name: Create comment
6464
if: github.event_name == 'pull_request' && steps.check-math.outputs.math_found == 'true'
65-
uses: actions/github-script@v6
65+
uses: actions/github-script@v8
6666
with:
6767
script: |
6868
const fs = require('fs');

0 commit comments

Comments
 (0)