Skip to content

Commit

Permalink
Merge branch 'finos:main' into architecture-only-validation
Browse files Browse the repository at this point in the history
  • Loading branch information
lbulanti-ms authored Jan 10, 2025
2 parents 593833d + 0826268 commit fcbf1f1
Show file tree
Hide file tree
Showing 164 changed files with 14,289 additions and 17,971 deletions.
14 changes: 14 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
cli:
- "cli/**"
shared:
- "shared/**"
docs:
- "docs/**"
calm-hub:
- "calm-hub/**"
calm:
- "calm/**"
config:
- "pom.xml"
- "**/package.json"
- "**/package-lock.json"
7 changes: 6 additions & 1 deletion .github/maven-cve-ignore-list.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<suppressions xmlns="https://jeremylong.github.io/DependencyCheck/dependency-suppression.1.3.xsd">
</suppressions>
<!-- Suppress quarkus-run.jar -->
<suppress>
<filePath regex="true">.*quarkus-run\.jar</filePath>
<cvssBelow>10.0</cvssBelow>
</suppress>
</suppressions>
2 changes: 1 addition & 1 deletion .github/workflows/build-calm-hub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

# Step 3: Cache Maven Dependencies
- name: Cache Maven Dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('calm-hub/pom.xml') }}
Expand Down
25 changes: 17 additions & 8 deletions .github/workflows/cve-scanning-maven.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CVE Scanning for Maven
name: CVE Scanning for Maven Projects

on:
workflow_dispatch:
Expand All @@ -22,20 +22,24 @@ jobs:
matrix:
java-version: [ '21' ]
module-folder: [
'translator'
'translator',
'calm-hub'
]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup JDK
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
cache: maven
distribution: 'adopt'

- name: Build with Maven
run: mvn clean install -Dmaven.test.skip=true
run: mvn -DskipTests verify
working-directory: ${{ matrix.module-folder }}

- name: Depcheck
uses: dependency-check/Dependency-Check_Action@main
id: Depcheck
Expand All @@ -45,15 +49,20 @@ jobs:
project: '${{ matrix.module-folder }}'
path: '${{ matrix.module-folder }}'
format: 'HTML'
out: '${{ matrix.module-folder }}-reports' # this is the default, no need to specify unless you wish to override it
out: '${{ matrix.module-folder }}-reports'
args: >
--suppression .github/maven-cve-ignore-list.xml
--failOnCVSS 5
--enableRetired
--suppression .github/maven-cve-ignore-list.xml
--failOnCVSS 5
--enableRetired
--exclude "**/package.json"
--exclude "**/package-lock.json"
--disableNodeAudit
--disableYarnAudit
--disableRetireJS
- name: Upload Test results
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: Depcheck report ${{ github.job }} ${{ matrix.module-folder }}
path: ${{ github.workspace }}/${{ matrix.module-folder }}-reports
path: ${{ github.workspace }}/${{ matrix.module-folder }}-reports
18 changes: 18 additions & 0 deletions .github/workflows/pr-labelling.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: PR Labeler

on:
pull_request_target:
types: [opened, synchronize]

jobs:
label:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Label PR based on changes
uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
4 changes: 2 additions & 2 deletions .github/workflows/validate-spectral.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ jobs:
- name: Build workspace
run: npm run build

- name: Install Spectral-CLI
run: npm install @stoplight/spectral-cli
- name: Install dependencies for Spectral
run: npm install @stoplight/spectral-cli rollup

- name: Run Example Spectral Linting
run: npx spectral lint --ruleset ./shared/dist/spectral/rules-architecture.js 'calm/samples/api-gateway-architecture(*.json|*.yaml)'
Expand Down
5 changes: 3 additions & 2 deletions .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.6/apache-maven-3.8.6-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.1/maven-wrapper-3.1.1.jar
wrapperVersion=3.3.2
distributionType=only-script
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip
24 changes: 15 additions & 9 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
{
"testing.openTesting": "neverOpen",
"jest.outputConfig": {
"revealOn": "run",
"revealWithFocus": "none",
"clearOnRun": "none"
},
"java.compile.nullAnalysis.mode": "automatic",
"java.configuration.updateBuildConfiguration": "automatic"
}
"testing.openTesting": "neverOpen",
"jest.outputConfig": {
"revealOn": "run",
"revealWithFocus": "none",
"clearOnRun": "none"
},
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"java.compile.nullAnalysis.mode": "automatic",
"java.configuration.updateBuildConfiguration": "automatic",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnPaste": false
}
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ your project.

## Projects

| Project | Lead Maintainers | Builds |
| -------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Common Architecture Language Model](./calm) | [@rocketstack-matt](https://github.com/rocketstack-matt), [@jpgough-ms](https://github.com/jpgough-ms) | [![Validation of CALM Samples](https://github.com/finos/architecture-as-code/actions/workflows/spectral-validation.yml/badge.svg)](https://github.com/finos/architecture-as-code/actions/workflows/validate-spectral.yml) |
| [Docs](./docs) | [@rocketstack-matt](https://github.com/rocketstack-matt) | [![Sync Docs to S3](https://github.com/finos/architecture-as-code/actions/workflows/s3-docs-sync.yml/badge.svg)](https://github.com/finos/architecture-as-code/actions/workflows/s3-docs-sync.yml) [![Build Docs](https://github.com/finos/architecture-as-code/actions/workflows/build-docs.yml/badge.svg)](https://github.com/finos/architecture-as-code/actions/workflows/build-docs.yml) |
| [CLI](./cli) & [Shared](./shared) | [@aidanm3341](https://github.com/aidanm3341), [@lbulanti-ms](https://github.com/lbulanti-ms), [@willosborne](https://github.com/willosborne), [@grahampacker-ms](https://github.com/grahampacker-ms) [@Thels](https://github.com/Thels) | [![Build CLI](https://github.com/finos/architecture-as-code/actions/workflows/build-cli/badge.svg)](https://github.com/finos/architecture-as-code/actions/workflows/build-cli.yml) [![Build Shared Module](https://github.com/finos/architecture-as-code/actions/workflows/build-shared.yml/badge.svg?branch=main)](https://github.com/finos/architecture-as-code/actions/workflows/build-shared.yml) | |
| [Translators](./translator) | [@Budlee](https://github.com/Budlee) [@matthewgardner](https://github.com/matthewgardner) [@jpgough-ms](https://github.com/jpgough-ms) | [![Build Translator](https://github.com/finos/architecture-as-code/actions/workflows/build-translator.yml/badge.svg)](https://github.com/finos/architecture-as-code/actions/workflows/build-translator.yml) |
| Project | Lead Maintainers | Builds |
|----------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Common Architecture Language Model](./calm) | [@rocketstack-matt](https://github.com/rocketstack-matt), [@jpgough-ms](https://github.com/jpgough-ms) | [![Validation of CALM Samples](https://github.com/finos/architecture-as-code/actions/workflows/validate-spectral.yml/badge.svg)](https://github.com/finos/architecture-as-code/actions/workflows/validate-spectral.yml) |
| [Docs](./docs) | [@rocketstack-matt](https://github.com/rocketstack-matt) | [![Sync Docs to S3](https://github.com/finos/architecture-as-code/actions/workflows/s3-docs-sync.yml/badge.svg)](https://github.com/finos/architecture-as-code/actions/workflows/s3-docs-sync.yml) [![Build Docs](https://github.com/finos/architecture-as-code/actions/workflows/build-docs.yml/badge.svg)](https://github.com/finos/architecture-as-code/actions/workflows/build-docs.yml) |
| [CLI](./cli) & [Shared](./shared) | [@aidanm3341](https://github.com/aidanm3341), [@lbulanti-ms](https://github.com/lbulanti-ms), [@willosborne](https://github.com/willosborne), [@grahampacker-ms](https://github.com/grahampacker-ms) [@Thels](https://github.com/Thels) | [![Build CLI](https://github.com/finos/architecture-as-code/actions/workflows/build-cli.yml/badge.svg)](https://github.com/finos/architecture-as-code/actions/workflows/build-cli.yml)|
| [Translators](./translator) | [@Budlee](https://github.com/Budlee) [@matthewgardner](https://github.com/matthewgardner) [@jpgough-ms](https://github.com/jpgough-ms) | [![Build Translator](https://github.com/finos/architecture-as-code/actions/workflows/build-translator.yml/badge.svg)](https://github.com/finos/architecture-as-code/actions/workflows/build-translator.yml) |

## Getting Involved

Expand Down Expand Up @@ -67,7 +67,7 @@ There aren't many standards to follow when it comes to Github actions - but some
- Ensure that any obscure actions are documented so that others can follow and maintain them.


## Language Dependencies
## Language Dependencies

### TypeScript Packages

Expand Down
3 changes: 3 additions & 0 deletions calm-hub/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ fabric.properties
.idea/**/azureSettings.xml

### Java ###
# META-INF
META-INF/

# Compiled class file
*.class

Expand Down
Loading

0 comments on commit fcbf1f1

Please sign in to comment.