-
Notifications
You must be signed in to change notification settings - Fork 1
Feature: Set up CI Pipeline #97 #100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
8b834d5
Add CI pipeline: lint (non-blocking adn should be changed later), tes…
Manastirski 160df2b
Fix Node version to 24.x for Angular CLI compatibility
Manastirski 9eedf5b
Add .nvmrc as single source of truth for Node version in CI. CI now r…
Manastirski 08206f8
testing pipeline
Manastirski a658f28
CI:
Manastirski ffc0185
remove unused $event binding from HostListener after unused param cl…
Manastirski 82ececf
testing ci
Manastirski ee0aa3a
testing ci
Manastirski d8a23bc
testing ci
Manastirski 8d430ef
testing ci
Manastirski 92895a2
# trigger CI test run
Manastirski bbf633b
# trigger CI test run
Manastirski 6b24b39
# trigger CI test run
Manastirski ad74ba4
# trigger CI test run
Manastirski 267c28b
Improved the CI
Manastirski dd23bfb
Improved the CI
Manastirski 0efaa92
testing pipeline error logging
Manastirski b2d98f0
testing pipeline error logging
Manastirski 12a5ee5
testing pipeline error logging
Manastirski b25ac01
testing pipeline error logging
Manastirski aa1b9b1
added @typescript-eslint/explicit-function-return-types and configure…
Manastirski 19d76c2
renamed student-filter-options.ts
Manastirski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,68 @@ | ||
| name: Angular CI | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: [main] | ||
|
|
||
| concurrency: | ||
| group: ci-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| defaults: | ||
| run: | ||
| working-directory: uniplanWeb | ||
|
|
||
| jobs: | ||
| build-and-test: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 10 | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v5 | ||
| with: | ||
| node-version-file: 'uniplanWeb/.nvmrc' | ||
| cache: 'npm' | ||
| cache-dependency-path: uniplanWeb/package-lock.json | ||
|
|
||
| - name: Install dependencies | ||
| run: npm ci | ||
|
|
||
| - name: Lint | ||
| run: | | ||
| set -o pipefail | ||
| npm run lint | tee lint-output.log | ||
|
|
||
| - name: Run unit tests | ||
| run: | | ||
| set -o pipefail | ||
| npm run test -- --no-watch --no-progress --browsers=ChromeHeadless --code-coverage | tee test-output.log | ||
|
|
||
| - name: Build | ||
| run: npm run build | ||
|
|
||
| - name: Job summary | ||
| if: always() | ||
| run: | | ||
| { | ||
| echo "## Lint" | ||
| echo '```' | ||
| if [ -f lint-output.log ]; then | ||
| cat lint-output.log | ||
| else | ||
| echo "Lint did not run (an earlier step failed)." | ||
| fi | ||
| echo '```' | ||
| echo | ||
| echo "## Coverage" | ||
| echo '```' | ||
| if [ -f test-output.log ]; then | ||
| grep -A 5 "Coverage summary" test-output.log || echo "No coverage data captured." | ||
| else | ||
| echo "Tests did not run (an earlier step failed)." | ||
| fi | ||
| echo '```' | ||
| } >> "$GITHUB_STEP_SUMMARY" |
This file contains hidden or 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 @@ | ||
| 24 |
This file contains hidden or 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 hidden or 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,87 @@ | ||
| // @ts-check | ||
| const eslint = require("@eslint/js"); | ||
| const { defineConfig } = require("eslint/config"); | ||
| const tseslint = require("typescript-eslint"); | ||
| const angular = require("angular-eslint"); | ||
|
|
||
| module.exports = defineConfig([ | ||
| { | ||
| files: ["**/*.ts"], | ||
| extends: [ | ||
| eslint.configs.recommended, | ||
| tseslint.configs.recommended, | ||
| tseslint.configs.stylistic, | ||
| angular.configs.tsRecommended, | ||
| ], | ||
| processor: angular.processInlineTemplates, | ||
| rules: { | ||
| "@angular-eslint/directive-selector": [ | ||
| "error", | ||
| { | ||
| type: "attribute", | ||
| prefix: "app", | ||
| style: "camelCase", | ||
| }, | ||
| ], | ||
| "@angular-eslint/component-selector": [ | ||
| "error", | ||
| { | ||
| type: "element", | ||
| prefix: "app", | ||
| style: "kebab-case", | ||
| }, | ||
| ], | ||
| "@angular-eslint/contextual-lifecycle": "error", | ||
| "@angular-eslint/no-empty-lifecycle-method": "error", | ||
| "@angular-eslint/no-input-rename": "error", | ||
| "@angular-eslint/no-inputs-metadata-property": "error", | ||
| "@angular-eslint/no-output-native": "error", | ||
| "@angular-eslint/no-output-on-prefix": "error", | ||
| "@angular-eslint/no-output-rename": "error", | ||
| "@angular-eslint/no-outputs-metadata-property": "error", | ||
| "@angular-eslint/prefer-standalone": "error", | ||
| "@angular-eslint/use-pipe-transform-interface": "error", | ||
| "@angular-eslint/use-lifecycle-interface": "warn", | ||
|
|
||
| "@typescript-eslint/no-unused-vars": "error", | ||
| "@angular-eslint/prefer-inject": "error", | ||
| "@typescript-eslint/no-inferrable-types": "off", | ||
| "@typescript-eslint/no-explicit-any": "warn", | ||
| "@angular-eslint/prefer-on-push-component-change-detection": "off", | ||
|
|
||
| "@typescript-eslint/explicit-function-return-type": [ | ||
| "error", | ||
| { | ||
| allowExpressions: true, | ||
| allowTypedFunctionExpressions: true, | ||
| allowHigherOrderFunctions: true, | ||
| }, | ||
| ], | ||
| }, | ||
| }, | ||
| { | ||
| files: ["**/*.html"], | ||
| extends: [ | ||
| angular.configs.templateRecommended, | ||
| angular.configs.templateAccessibility, | ||
| ], | ||
| rules: { | ||
| "@angular-eslint/template/banana-in-box": "error", | ||
| "@angular-eslint/template/eqeqeq": "error", | ||
| "@angular-eslint/template/no-negated-async": "error", | ||
| "@angular-eslint/template/prefer-control-flow": "error", | ||
|
|
||
| "@angular-eslint/template/alt-text": "error", | ||
| "@angular-eslint/template/click-events-have-key-events": "error", | ||
| "@angular-eslint/template/elements-content": "error", | ||
| "@angular-eslint/template/interactive-supports-focus": "error", | ||
| "@angular-eslint/template/label-has-associated-control": "error", | ||
| "@angular-eslint/template/mouse-events-have-key-events": "error", | ||
| "@angular-eslint/template/no-autofocus": "error", | ||
| "@angular-eslint/template/no-distracting-elements": "error", | ||
| "@angular-eslint/template/role-has-required-aria": "error", | ||
| "@angular-eslint/template/table-scope": "error", | ||
| "@angular-eslint/template/valid-aria": "error", | ||
| }, | ||
| }, | ||
| ]); | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.