This repository has been archived by the owner on May 24, 2022. 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 #167 from SELab-2/develop
Release Milestone 1
- Loading branch information
Showing
291 changed files
with
22,446 additions
and
1 deletion.
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
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: '' | ||
|
||
--- | ||
|
||
|
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,10 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: "[FEAT]" | ||
labels: enhancement | ||
assignees: '' | ||
|
||
--- | ||
|
||
|
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,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 |
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,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 |
Oops, something went wrong.