This commit is contained in:
BinarySandia04 2024-10-09 14:38:39 +02:00
parent 9a714815f3
commit d7376aadad
10 changed files with 6213 additions and 918 deletions

View File

@ -1,8 +1,8 @@
name: frontendTesting name: ci
run-name: Testing frontend run-name: CI Test
on: [push] on: [push]
jobs: jobs:
run-defined-frontend-tests: run-tests:
runs-on: ubuntu-latest runs-on: ubuntu-latest
defaults: defaults:
run: run:
@ -12,5 +12,8 @@ jobs:
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
node-version: '14' node-version: '14'
- run: npm ci - name: "Install dependencies"
- run: npm test:unit run: ./install.sh
- name: "Test client"
working-directory: ./client
run: npm test:unit

3
.gitignore vendored
View File

@ -1,5 +1,6 @@
.DS_Store .DS_Store
server/node_modules/ backend/node_modules/
client/node_modules/
node_modules/ node_modules/
server/uploads/ server/uploads/

6234
client/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -38,6 +38,14 @@
"eslint": "^8.49.0", "eslint": "^8.49.0",
"eslint-plugin-vue": "^9.17.0", "eslint-plugin-vue": "^9.17.0",
"sass": "^1.69.5", "sass": "^1.69.5",
"vite": "^4.4.9" "vite": "^4.4.9",
"@babel/preset-env": "^7.25.7",
"@vue/test-utils": "^2.4.6",
"@vue/vue3-jest": "^29.2.6",
"babel-jest": "^29.7.0",
"clean-jsdoc-theme": "^4.3.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jsdoc": "^4.0.3"
} }
} }

8
install.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
npm ci
cd client
npm ci
cd ..
cd backend
npm ci
cd ..

860
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -21,7 +21,6 @@
"clean-jsdoc-theme": "^4.3.0", "clean-jsdoc-theme": "^4.3.0",
"jest": "^29.7.0", "jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0", "jest-environment-jsdom": "^29.7.0",
"jsdoc": "^4.0.3", "jsdoc": "^4.0.3"
"vue-jest": "^3.0.7"
} }
} }