diff --git a/.github/workflows/pipeline.yaml b/.github/workflows/pipeline.yaml new file mode 100644 index 0000000..74804dc --- /dev/null +++ b/.github/workflows/pipeline.yaml @@ -0,0 +1,34 @@ +name: Lint, Test, and Build + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + lint_and_test: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Node.js to LTS version + uses: actions/setup-node@v3 + with: + node-version: 'lts/*' + + - name: Install dependencies + run: npm install + + - name: Run Linter + run: npm run lint + + - name: Run Tests + run: npm test + + - name: Build + run: npm run build diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..d449a84 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 Softarc Consulting GmbH + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/apps/frontend/src/app/app.routes.ts b/apps/frontend/src/app/app.routes.ts index 7fee7d9..0f4f430 100644 --- a/apps/frontend/src/app/app.routes.ts +++ b/apps/frontend/src/app/app.routes.ts @@ -1,4 +1,4 @@ -import { Routes } from '@angular/router'; +import { Routes, ActivatedRoute } from '@angular/router'; import { CouplingComponent } from './features/coupling/coupling.component'; import { GraphTypeData } from './model/graph-type'; import { ensureCache } from './shell/cache.guard'; diff --git a/package.json b/package.json index 86596d3..a528815 100644 --- a/package.json +++ b/package.json @@ -86,6 +86,9 @@ }, "scripts": { "prepare": "husky", + "lint": "nx run-many --target=lint --all --fix --max-warnings=0", + "test": "nx run-many --target=test --all", + "build": "nx run-many --target=build --all", "release": "nx release --skip-publish" } }