Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Commit

Permalink
Merge pull request #167 from SELab-2/develop
Browse files Browse the repository at this point in the history
Release Milestone 1
  • Loading branch information
stijndcl authored Mar 24, 2022
2 parents 84d4c36 + 332f276 commit 5777d68
Show file tree
Hide file tree
Showing 291 changed files with 22,446 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Bug report
about: Create a report to help us improve
title: "[BUG]"
labels: bug
assignees: ''

---


10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Feature request
about: Suggest an idea for this project
title: "[FEAT]"
labels: enhancement
assignees: ''

---


77 changes: 77 additions & 0 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: Backend CI
on:
push:
paths:
- ".github/workflows/backend.yml"
- "backend/**"
- "!**.md"

defaults:
run:
working-directory: backend

jobs:
Dependencies:
runs-on: self-hosted
container: python:3.10.2-alpine
steps:
- run: apk add --no-cache tar
- uses: actions/checkout@v2
- uses: actions/cache@v2
id: cache
with:
path: /usr/local/lib/python3.10/site-packages
key: ${{ runner.os }}-site-packages-${{ hashFiles('**/requirements.txt', '**/requirements-dev.txt') }}
restore-keys: |
${{ runner.os }}-site-packages-
- if: steps.cache.outputs.cache-hit != 'true'
run: apk add gcc musl-dev build-base mariadb-dev libffi-dev

- if: steps.cache.outputs.cache-hit != 'true'
run: pip install -r requirements.txt

- if: steps.cache.outputs.cache-hit != 'true'
run: pip install -r requirements-dev.txt

Test:
needs: [Dependencies]
runs-on: self-hosted
container: python:3.10.2-alpine
steps:
- run: apk add --no-cache tar
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: /usr/local/lib/python3.10/site-packages
key: ${{ runner.os }}-site-packages-${{ hashFiles('**/requirements.txt', '**/requirements-dev.txt') }}

- run: python -m pytest

Lint:
needs: [Test]
runs-on: self-hosted
container: python:3.10.2-alpine
steps:
- run: apk add --no-cache tar
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: /usr/local/lib/python3.10/site-packages
key: ${{ runner.os }}-site-packages-${{ hashFiles('**/requirements.txt', '**/requirements-dev.txt') }}

- run: python -m pylint src tests

Type:
needs: [Test]
runs-on: self-hosted
container: python:3.10.2-alpine
steps:
- run: apk add --no-cache tar
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: /usr/local/lib/python3.10/site-packages
key: ${{ runner.os }}-site-packages-${{ hashFiles('**/requirements.txt', '**/requirements-dev.txt') }}

- run: python -m mypy src tests
114 changes: 114 additions & 0 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
name: Frontend CI
on:
push:
paths:
- ".github/workflows/frontend.yml"
- "frontend/**"
- "!**.md"

defaults:
run:
working-directory: frontend

jobs:
Dependencies:
runs-on: self-hosted
container: node:16.14.0-alpine
steps:
- run: apk add --no-cache tar
- uses: actions/checkout@v2

- name: Get yarn cache directory path
id: yarn-cache-dir
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v2
id: cache
with:
path: ${{ steps.yarn-cache-dir.outputs.dir }}
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('**/yarn.lock', '**/package.json') }}
restore-keys: |
${{ runner.os }}-yarn-cache
- if: steps.cache.outputs.cache-hit != 'true'
run: yarn install --prefer-offline

Test:
needs: [Dependencies]
runs-on: self-hosted
container: node:16.14.0-alpine
steps:
- run: apk add --no-cache tar
- uses: actions/checkout@v2

- name: Get yarn cache directory path
id: yarn-cache-dir
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-dir.outputs.dir }}
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('**/yarn.lock', '**/package.json') }}

- run: yarn install --prefer-offline
- run: yarn test

Lint:
needs: [Test]
runs-on: self-hosted
container: node:16.14.0-alpine
steps:
- run: apk add --no-cache tar
- uses: actions/checkout@v2

- name: Get yarn cache directory path
id: yarn-cache-dir
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-dir.outputs.dir }}
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('**/yarn.lock', '**/package.json') }}

- run: yarn install --prefer-offline
- run: yarn run lint

Style:
needs: [Test]
runs-on: self-hosted
container: node:16.14.0-alpine
steps:
- run: apk add --no-cache tar
- uses: actions/checkout@v2

- name: Get yarn cache directory path
id: yarn-cache-dir
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-dir.outputs.dir }}
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('**/yarn.lock', '**/package.json') }}

- run: yarn install --prefer-offline
- run: yarn run prettier -c src

Build:
needs: [Style, Lint]
runs-on: self-hosted
container: node:16.14.0-alpine
steps:
- run: apk add --no-cache tar
- uses: actions/checkout@v2

- name: Get yarn cache directory path
id: yarn-cache-dir
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-dir.outputs.dir }}
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('**/yarn.lock', '**/package.json') }}

- run: yarn install --prefer-offline
- run: yarn build
Loading

0 comments on commit 5777d68

Please sign in to comment.