diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 4a705ae..232f58d 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -23,6 +23,14 @@ jobs: - name: Backend Test Coverage Results run: docker compose exec backend coverage report +# - name: Run React tests +# run: docker compose exec frontend npm test -- --watchAll=false + + - name: Frontend Cyclomatic Complexity Test + run: docker compose exec frontend npx eslint src/ + + - name: Backend Cyclomatic Complexity Test + run: docker compose exec backend radon cc api/ -s -a - name: Run React coverage test run: docker compose exec -iT frontend npm test -- --coverage --watchAll=false diff --git a/README.md b/README.md index 5888ec3..b1d3ceb 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,12 @@ # arch-vim +# Cyclomatic Complexity Commands: +While containers are running +``` +docker compose exec -it frontend npx eslint src/ +docker compose exec -it backend radon cc api/ -s -a +``` + ## Docker commands diff --git a/backend/requirements.txt b/backend/requirements.txt index 6b29b3b..7331544 100644 Binary files a/backend/requirements.txt and b/backend/requirements.txt differ diff --git a/frontend/.eslintrc.json b/frontend/.eslintrc.json new file mode 100644 index 0000000..88d60a0 --- /dev/null +++ b/frontend/.eslintrc.json @@ -0,0 +1,12 @@ +{ + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaVersion": 2020, + "ecmaFeatures": { + "jsx": true + } + }, + "rules": { + "complexity": ["warn", 1] + } +}