This repository has been archived by the owner on Feb 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #111 from SELab-2/development
Release
- Loading branch information
Showing
146 changed files
with
10,968 additions
and
5,684 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Lint CI | ||
|
||
on: | ||
- pull_request | ||
|
||
jobs: | ||
flake8: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.9" | ||
- name: Install dependencies | ||
working-directory: ./backend | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: Analysing the code with flake8 | ||
working-directory: ./backend | ||
run: | | ||
flake8 backend/ drtrottoir/ | ||
ESLint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
# Check out the repository | ||
- uses: actions/checkout@v3 | ||
|
||
# Install Node.js | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.15.0 | ||
|
||
# Install your dependencies | ||
- name: Install your dependencies | ||
working-directory: ./frontend | ||
run: npm ci | ||
|
||
# Run ESLint | ||
- name: Run ESLint | ||
working-directory: ./frontend | ||
run: npm run lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: "All CI" | ||
on: | ||
- pull_request | ||
|
||
jobs: | ||
test: | ||
runs-on: self-hosted | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Remove artifacts | ||
run: docker-compose down -v | ||
- name: Build the image | ||
run: docker-compose up -d --build | ||
- name: Test Django unittest | ||
run: docker exec DrTrottoir-be python manage.py test | ||
- name: Test NEXT.js Jest | ||
run: docker exec DrTrottoir-fe npm run jest:workflow | ||
- name: Linter Python | ||
run: docker exec DrTrottoir-be flake8 backend/ drtrottoir/ | ||
- name: Linter Javascript | ||
run: docker exec DrTrottoir-fe npm run lint | ||
- name: remove artifacts | ||
run: docker-compose down -v |
Oops, something went wrong.