Skip to content

Commit

Permalink
Replace client based on AngularJS with new Angular client
Browse files Browse the repository at this point in the history
  • Loading branch information
msmannan00 authored and evilaliv3 committed May 16, 2024
1 parent ec7341d commit a408f4e
Show file tree
Hide file tree
Showing 1,980 changed files with 421,422 additions and 165,536 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
sudo apt-get update -q
sudo apt-get install -y git
- name: Run build
- name: Run tests
run: |
cd $GITHUB_WORKSPACE
./.github/workflows/scripts/run-build.sh
20 changes: 8 additions & 12 deletions .github/workflows/scripts/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,26 @@ function atexit {

trap atexit EXIT

setupClientDependencies() {
setupClient() {
cd $GITHUB_WORKSPACE/client # to install frontend dependencies
npm install
grunt instrument-client
npm install -d
./node_modules/grunt/bin/grunt build_and_instrument
}

setupBackendDependencies() {
setupBackend() {
cd $GITHUB_WORKSPACE/backend # to install backend dependencies
pip3 install -r requirements/requirements-$(lsb_release -cs).txt
}

setupDependencies() {
setupClientDependencies
setupBackendDependencies
}

echo "Running setup"
sudo apt-get update
sudo apt-get install -y tor
npm install -g grunt grunt-cli

pip install coverage
setupClient
setupBackend

echo "Running backend unit tests"
setupDependencies
cd $GITHUB_WORKSPACE/backend && coverage run setup.py test

$GITHUB_WORKSPACE/backend/bin/globaleaks -z
Expand All @@ -51,5 +47,5 @@ cd $GITHUB_WORKSPACE/client && npm test

cd $GITHUB_WORKSPACE/backend && coverage xml
bash <(curl -Ls https://coverage.codacy.com/get.sh) report -l Python -r $GITHUB_WORKSPACE/backend/coverage.xml
bash <(curl -Ls https://coverage.codacy.com/get.sh) report -l Javascript -r $GITHUB_WORKSPACE/client/cypress/coverage/lcov.info
bash <(curl -Ls https://coverage.codacy.com/get.sh) report -l TypeScript -r $GITHUB_WORKSPACE/client/cypress/coverage/lcov.info
bash <(curl -Ls https://coverage.codacy.com/get.sh) final
3 changes: 0 additions & 3 deletions client/.babelrc

This file was deleted.

1 change: 1 addition & 0 deletions client/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy-peer-deps=true
18 changes: 12 additions & 6 deletions client/.nycrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
{
"reporter": ["lcov", "text-summary"],
"include": ["app/js/**/*"],
"exclude": ["cypress/**", "node_modules/**", "app/lib/**/*"],
"check-coverage": false,
"report-dir": "cypress/coverage",
"sourceMap": false
"extends": "@istanbuljs/nyc-config-typescript",
"all": false,
"report-dir": "./cypress/coverage",
"exclude": [
"./coverage/**",
"cypress/**",
"./dist/**",
"**/*.spec.ts",
"./app/main.ts",
"./app/test.ts",
"**/*.conf.js"
]
}
2 changes: 1 addition & 1 deletion client/.stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
"selector-id-pattern": null,
"selector-class-pattern": null
}
}
}
Loading

0 comments on commit a408f4e

Please sign in to comment.