-
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 #1 from filips123/rewrite
- Loading branch information
Showing
133 changed files
with
17,633 additions
and
10,703 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,55 @@ | ||
name: API Checks | ||
|
||
on: | ||
push: | ||
paths: | ||
- API/** | ||
pull_request: | ||
paths: | ||
- API/** | ||
|
||
defaults: | ||
run: | ||
working-directory: API | ||
shell: bash | ||
|
||
jobs: | ||
lint: | ||
name: Linting | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Configure Poetry cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.cache/pip | ||
~/.cache/pypoetry | ||
~/.poetry | ||
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }} | ||
restore-keys: ${{ runner.os }}-poetry- | ||
|
||
- name: Install Poetry | ||
run: | | ||
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python | ||
~/.poetry/bin/poetry config virtualenvs.create false | ||
echo "~/.poetry/bin" >> $GITHUB_PATH | ||
- name: Install tools | ||
run: python -m pip install --upgrade pip wheel poetry-dynamic-versioning | ||
|
||
- name: Install dependencies | ||
run: poetry install | ||
|
||
- name: Lint the project | ||
run: flakehell 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,77 @@ | ||
name: Website Checks | ||
|
||
on: | ||
push: | ||
paths: | ||
- website/** | ||
pull_request: | ||
paths: | ||
- website/** | ||
|
||
defaults: | ||
run: | ||
working-directory: website | ||
shell: bash | ||
|
||
jobs: | ||
lint: | ||
name: Linting | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
|
||
- name: Configure Yarn cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.config/yarn | ||
./node_modules/.cache | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: ${{ runner.os }}-yarn- | ||
|
||
- name: Copy configuration | ||
run: cp .env.sample .env | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Lint the project | ||
run: yarn lint --mode production | ||
|
||
build: | ||
name: Building | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
|
||
- name: Configure Yarn cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.config/yarn | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: ${{ runner.os }}-yarn- | ||
|
||
- name: Copy configuration | ||
run: cp .env.sample .env | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Build the project | ||
run: yarn build --mode production |
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
Oops, something went wrong.