diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index ecf1da3..82393bf 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -1,12 +1,15 @@ name: Backend CI on: + workflow_dispatch: push: paths: - 'Back-end/**' + - '.github/workflows/backend.yml' pull_request: paths: - 'Back-end/**' + - '.github/workflows/backend.yml' jobs: test: @@ -15,19 +18,7 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: '3.10' - cache: 'pip' - cache-dependency-path: 'Back-end/requirements*.txt' - - - name: Install dependencies + - name: Build and Run tests via Docker Compose run: | - python -m pip install --upgrade pip - pip install -r Back-end/requirements.txt - - - name: Run tests - run: | - cd Back-end/stag_io - python manage.py test + cd Back-end + docker compose -f Docker-compose.yaml run --rm stag_io sh -c "python manage.py test" diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index efb91f8..bdc3c44 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -1,12 +1,15 @@ name: Frontend CI on: + workflow_dispatch: push: paths: - 'Front-end/**' + - '.github/workflows/frontend.yml' pull_request: paths: - 'Front-end/**' + - '.github/workflows/frontend.yml' jobs: build-and-test: diff --git a/Front-end/eslint.config.js b/Front-end/eslint.config.js index 4fa125d..2fea38f 100644 --- a/Front-end/eslint.config.js +++ b/Front-end/eslint.config.js @@ -23,7 +23,12 @@ export default defineConfig([ }, }, rules: { - 'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }], + 'no-unused-vars': ['warn', { varsIgnorePattern: '^[A-Z_]' }], + 'react-refresh/only-export-components': ['warn', { allowConstantExport: true }], + 'no-use-before-define': 'off', + 'react-hooks/exhaustive-deps': 'warn', + 'react-hooks/immutability': 'warn', + 'react-hooks/set-state-in-effect': 'warn' }, }, ]) diff --git a/Front-end/lint_output.json b/Front-end/lint_output.json new file mode 100644 index 0000000..7f5f4cf Binary files /dev/null and b/Front-end/lint_output.json differ diff --git a/Front-end/lint_output.txt b/Front-end/lint_output.txt new file mode 100644 index 0000000..eaa52bc Binary files /dev/null and b/Front-end/lint_output.txt differ diff --git a/Front-end/package-lock.json b/Front-end/package-lock.json index c86b60a..c383946 100644 --- a/Front-end/package-lock.json +++ b/Front-end/package-lock.json @@ -767,9 +767,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -787,9 +784,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -807,9 +801,6 @@ "ppc64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -827,9 +818,6 @@ "s390x" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -847,9 +835,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -867,9 +852,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -1101,9 +1083,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -1121,9 +1100,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -1141,9 +1117,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -1161,9 +1134,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -2893,9 +2863,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -2917,9 +2884,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -2941,9 +2905,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -2965,9 +2926,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MPL-2.0", "optional": true, "os": [