Skip to content

Commit

Permalink
Merge pull request #1 from filips123/rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
filips123 authored Jan 11, 2021
2 parents 05b57d7 + 7af2e99 commit 6271e36
Show file tree
Hide file tree
Showing 133 changed files with 17,633 additions and 10,703 deletions.
3 changes: 1 addition & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ insert_final_newline = true
trim_trailing_whitespace = true

# Web & Data
[*.{html,css,js,json,yaml,yml}]
indent_style = space
[*.{html,css,sass,scss,js,jsx,ts,tsx,vue,json,yaml,yml}]
indent_size = 2

# Windows
Expand Down
55 changes: 55 additions & 0 deletions .github/workflows/api.yaml
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
77 changes: 77 additions & 0 deletions .github/workflows/website.yml
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
10 changes: 6 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ pids/

# Environments
.python-version
.env
.venv
.env*
.venv*
!.env*.sample
!.venv*.sample
ENV/
env/
env.bak/
Expand Down Expand Up @@ -104,8 +106,8 @@ node_modules/
web_modules/

# GimVicUrnik Configuration & Database
/API/nadconfig.yaml
/API/app.db
config.yaml
app.db

# Do not ignore .gitkeep files
!.gitkeep
Loading

0 comments on commit 6271e36

Please sign in to comment.