forked from javaparser/javaparser
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating to javaparser parent 3.26.2
- Loading branch information
Showing
102 changed files
with
6,574 additions
and
844 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Check codegen and formatting | ||
|
||
#on: [push, pull_request] | ||
#on: [pull_request] | ||
on: | ||
# Trigger the workflow on push to master (ignoring .md only changes) | ||
push: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- '**.md' | ||
|
||
# Trigger the workflow on any pull_request (ignoring .md only changes) | ||
pull_request: | ||
paths-ignore: | ||
- '**.md' | ||
|
||
# Enable manual triggering (important for contributors to enable a check on their fork) | ||
workflow_dispatch: | ||
|
||
# If a build is running in the current branch, and the branch is updated, we cancel the previous build and start | ||
# a new one with the updated changes. | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
# Run checkstyle validations for pipeline | ||
checkstyle_check: | ||
name: Validate checkstyle | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout latest code | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: "0" | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '11' | ||
distribution: 'zulu' | ||
- name: Validate Project Checkstyle | ||
run: ./mvnw -B checkstyle:check | ||
|
||
spotless_check: | ||
name: Spotless check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout latest code | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: "0" | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '11' | ||
distribution: 'zulu' | ||
- name: Generate code and format | ||
run: | | ||
./run_core_metamodel_generator.sh | ||
# ./run_core_generators.sh automatically runs ./mvnw spotless:apply | ||
./run_core_generators.sh | ||
git diff --exit-code |
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 |
---|---|---|
|
@@ -35,7 +35,21 @@ jobs: | |
## Different JDK versions have different implementations etc. -- test on all combinations (ideally 8 to latest). | ||
### exclude pre-8 (min development version jdk8) | ||
# typetools: Exclude 10 because of crashes in the compiler, exclude others because they aren't found | ||
jdk: [ 8,11,13,15,16,17 ] | ||
jdk: [ 8,11,13,15,16,17,18 ] | ||
# The below configurations are no longer available on github runners and is not supported by the | ||
# setup-java action, nor are they available from the supported distributions. | ||
# See https://github.com/actions/setup-java for details | ||
exclude: | ||
- os: macos-latest | ||
jdk: 9 | ||
- os: macos-latest | ||
jdk: 10 | ||
- os: macos-latest | ||
jdk: 12 | ||
- os: macos-latest | ||
jdk: 14 | ||
|
||
>>>>>>> 0ed19322f8efcf13ca541673cbe3f60a605af32c | ||
env: | ||
OS: ${{ matrix.os }} | ||
JDK: ${{ matrix.jdk }} | ||
|
@@ -102,40 +116,3 @@ jobs: | |
verbose: false # optional (default = false): | ||
flags: javaparser-symbol-solver,AlsoSlowTests,${{ matrix.os }},jdk-${{ matrix.jdk }} | ||
env_vars: OS,JDK | ||
|
||
# Run checkstyle validations for pipeline | ||
checkstyle_check: | ||
name: Validate checkstyle | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout latest code | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: "0" | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '11' | ||
distribution: 'zulu' | ||
- name: Validate Project Checkstyle | ||
run: ./mvnw -B checkstyle:check | ||
|
||
spotless_check: | ||
name: Validate code generation and formatting | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout latest code | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: "0" | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '11' | ||
distribution: 'zulu' | ||
- name: Generate code and format | ||
run: | | ||
./run_core_metamodel_generator.sh | ||
# ./run_core_generators.sh automatically runs ./mvnw spotless:apply | ||
./run_core_generators.sh | ||
git diff --exit-code |
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
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
Oops, something went wrong.