Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 6 additions & 15 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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"
3 changes: 3 additions & 0 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
7 changes: 6 additions & 1 deletion Front-end/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
},
},
])
Binary file added Front-end/lint_output.json
Binary file not shown.
Binary file added Front-end/lint_output.txt
Binary file not shown.
42 changes: 0 additions & 42 deletions Front-end/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading