Skip to content

Commit

Permalink
Merge pull request #6 from KacperJarocki/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
KacperJarocki authored Oct 20, 2023
2 parents 55aacc6 + 837b94c commit 4f60d72
Show file tree
Hide file tree
Showing 12 changed files with 912 additions and 289 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/frontend-test.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
name: Angular Testing
name: Angular build

on:
push:
branches:
- main
- dev
- prod
pull_request:
branches:
- main
- dev
- prod

jobs:
build:
Expand All @@ -28,12 +33,3 @@ jobs:
run: npm run build
working-directory: ./frontend

- name: Run unit tests
run: npm test
working-directory: ./frontend

- name: Upload test results
uses: actions/upload-artifact@v2
with:
name: test-results
path: ./coverage
7 changes: 6 additions & 1 deletion .github/workflows/server-test.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
name: Spring Boot Tests with Database
name: Spring boot test

on:
push:
branches:
- main
- dev
- prod
pull_request:
branches:
- main
- dev
- prod

jobs:
build:
Expand Down
4 changes: 4 additions & 0 deletions frontend/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
"recommendations": ["angular.ng-template"]
}
20 changes: 20 additions & 0 deletions frontend/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "ng serve",
"type": "chrome",
"request": "launch",
"preLaunchTask": "npm: start",
"url": "http://localhost:4200/"
},
{
"name": "ng test",
"type": "chrome",
"request": "launch",
"preLaunchTask": "npm: test",
"url": "http://localhost:9876/debug.html"
}
]
}
42 changes: 42 additions & 0 deletions frontend/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "start",
"isBackground": true,
"problemMatcher": {
"owner": "typescript",
"pattern": "$tsc",
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "(.*?)"
},
"endsPattern": {
"regexp": "bundle generation complete"
}
}
}
},
{
"type": "npm",
"script": "test",
"isBackground": true,
"problemMatcher": {
"owner": "typescript",
"pattern": "$tsc",
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "(.*?)"
},
"endsPattern": {
"regexp": "bundle generation complete"
}
}
}
}
]
}
33 changes: 0 additions & 33 deletions frontend/Dockerfile

This file was deleted.

12 changes: 9 additions & 3 deletions frontend/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
"projects": {
"frontend": {
"projectType": "application",
"schematics": {},
"schematics": {
"@schematics/angular:component": {
"style": "scss"
}
},
"root": "",
"sourceRoot": "src",
"prefix": "app",
Expand All @@ -20,12 +24,13 @@
"zone.js"
],
"tsConfig": "tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.css"
"src/styles.scss"
],
"scripts": []
},
Expand Down Expand Up @@ -82,12 +87,13 @@
"zone.js/testing"
],
"tsConfig": "tsconfig.spec.json",
"inlineStyleLanguage": "scss",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.css"
"src/styles.scss"
],
"scripts": []
}
Expand Down
Loading

0 comments on commit 4f60d72

Please sign in to comment.