Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #111 from SELab-2/development
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
JasperJanin authored Mar 16, 2023
2 parents db47398 + a7770d4 commit f77c1b3
Show file tree
Hide file tree
Showing 146 changed files with 10,968 additions and 5,684 deletions.
2 changes: 1 addition & 1 deletion .env.dev
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
DEBUG=1
SECRET_KEY=foo
DJANGO_ALLOWED_HOSTS='localhost 127.0.0.1 [::1]'
DJANGO_ALLOWED_HOSTS='localhost 127.0.0.1 [::1] django'
SQL_ENGINE=django.db.backends.postgresql
SQL_DATABASE=drtrottoir_dev
SQL_USER=drtrottoir_dev
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/linter.yml
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
23 changes: 23 additions & 0 deletions .github/workflows/tests.yml
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
Loading

0 comments on commit f77c1b3

Please sign in to comment.