Skip to content

Commit

Permalink
development to production (#235)
Browse files Browse the repository at this point in the history
* style: simplify conditions wd-146

* chore: add license wd-169

* docs: add readme wd-143

* docs: edit license path wd-143

* docs: add requirements to redame wd-143

* docs: edit main title in readme wd-143

* ci: add github hooks on postinstall wd-158

* ci: add env labeler wd-156

* ci: add repo key to env labeler wd-156

* ci: edit step name env labeler wd-156

* ci: add ci badge to readme wd-174

* ci: add cd badge to readme wd-174

* style: replace spaces with tabs wd-163

* refactor: replace underscore with private fields wd-190

* fix: bind for window resize in easter egg wd-191

* feat: add css custom media wd-191

* style: add css nesting wd-191

* style: edit css nesting orderwd-191

* chore: replace prettier yml config with js wd-157

* chore: replace stylelint yml config with cjs wd-157

* chore: replace lint-staged yml config with js wd-157

* chore: replace eslint yml config with js wd-157

* ci: add prettier for njk files

* refactor: add layouts and includes to njk files wd-177

* chore: add robots.txt wd-177

* chore: add globals & manifest.json wd-177

* chore: add header wd-177

* ci: add njk files to eslint wd-177

* feat: add not found page wd-145 (#212)

* wd-211: refactor form page (#213)

* refactor: rewrite form page wd-211

* refactor: rename home page to main wd-211

* fix: remove form page from build wd-211

* style: add prettier plugin for njk files wd-218 (#219)

* ci: add bem lint wd-218 (#220)

* ci: add htmllint wd-150 (#221)

* ci: add prettier for md files wd-223 (#224)

* chore: remove json server config wd-225 (#226)

* chore: update cv wd-167 (#227)

* chore: add gitattributes file wd-214 (#228)

* style: edit css sourcemaps output wd-176 (#229)

* fix: svg favicon wd-175 (#230)

* wd-144: edit ci steps (#231)

* ci: edit ci steps wd-144

* ci: edit ci steps wd-144

* ci: edit ci steps wd-144

* ci: edit ci steps wd-144

* ci: edit ci steps wd-144

* ci: edit ci steps wd-144

* ci: edit ci steps wd-144

* ci: edit ci steps wd-144

* ci: edit ci steps wd-144

* ci: edit ci steps wd-144

* ci: edit ci steps wd-144

* ci: edit ci steps wd-144

* ci: edit ci steps wd-144

* ci: edit ci steps wd-144

* ci: edit step name style wd-144

* feat: add release package wd-162 (#232)

* ci: edit makefile structure wd-162

* ci: edit lint commint lint action wd-162

* ci: edit commint lint config wd-162

* ci: add release functionality  wd-162

* ci: edit java version in ci action wd-162

* ci: edit java version in ci action wd-162

* ci: replace html validator package wd-233 (#234)
  • Loading branch information
what1s1ove authored Dec 1, 2023
1 parent 7e629e6 commit d779d11
Show file tree
Hide file tree
Showing 167 changed files with 21,185 additions and 17,502 deletions.
9 changes: 5 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
root = true

[*]
indent_style = space
indent_size = 2
indent_style = tab
indent_size = 4
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
charset = utf-8

[Makefile]
indent_style = tab
[*.yml]
indent_style = space
indent_size = 2
149 changes: 0 additions & 149 deletions .eslintrc.yml

This file was deleted.

6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
* text=auto eol=lf

*.png binary
*.woff2 binary
*.pdf binary
*.mp3 binary
5 changes: 5 additions & 0 deletions .github/pr-branch-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
development:
base: development

production:
base: production
51 changes: 48 additions & 3 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ concurrency:
cancel-in-progress: true

jobs:
build:
name: Build
dependencies:
name: Install Dependencies
runs-on: ubuntu-latest
steps:
- name: Code Checkout
Expand All @@ -22,9 +22,38 @@ jobs:
with:
node-version-file: .nvmrc

- name: Cache Dependencies
id: cache
uses: actions/cache@v3
with:
path: '**/node_modules'
key: cd-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
cd-
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
npm ci
npm install
build:
name: Build
needs: dependencies
runs-on: ubuntu-latest
steps:
- name: Code Checkout
uses: actions/checkout@v4

- name: Install NodeJS
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc

- name: Restore Dependencies
uses: actions/cache@v3
with:
path: '**/node_modules'
key: cd-${{ hashFiles('**/package-lock.json') }}

- name: Code Building
run: |
Expand All @@ -49,3 +78,19 @@ jobs:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

release:
name: Release
needs: deploy
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Code Checkout
uses: actions/checkout@v4

- name: Release
uses: google-github-actions/release-please-action@v3
with:
command: manifest
57 changes: 48 additions & 9 deletions .github/workflows/ci-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,35 @@ concurrency:
cancel-in-progress: true

jobs:
ci-pr:
permissions:
contents: read
pull-requests: write
dependencies:
name: Install Dependencies
runs-on: ubuntu-latest
steps:
- name: Code Checkout
uses: actions/checkout@v4

- name: Install NodeJS
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc

- name: Cache Dependencies
id: cache
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ci-pr-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
ci-pr-
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
npm install
lint:
name: Pull Request Linting
needs: dependencies
runs-on: ubuntu-latest

steps:
Expand All @@ -36,10 +60,25 @@ jobs:
with:
node-version-file: .nvmrc

- name: Install Dependencies
run: |
npm install
- name: Restore Dependencies
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ci-pr-${{ hashFiles('**/package-lock.json') }}

- name: Lint Commits
run: |
npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
uses: wagoid/commitlint-github-action@v5

labeler:
name: Labeler
needs: lint
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest

steps:
- name: Add Environment Label
uses: ffittschen/pr-branch-labeler@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
38 changes: 29 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: Continuous Integration

env:
JAVA_VERSION: 8

on:
pull_request:
branches:
Expand All @@ -14,9 +11,9 @@ concurrency:
cancel-in-progress: true

jobs:
ci:
dependencies:
name: Install Dependencies
runs-on: ubuntu-latest

steps:
- name: Code Checkout
uses: actions/checkout@v4
Expand All @@ -26,16 +23,39 @@ jobs:
with:
node-version-file: .nvmrc

- name: Install Java v${{ env.JAVA_VERSION }}
uses: actions/setup-java@v1
- name: Cache Dependencies
id: cache
uses: actions/cache@v3
with:
java-version: ${{ env.JAVA_VERSION }}
architecture: x64
path: '**/node_modules'
key: ci-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
ci-
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
npm install
lint:
name: Code Linting
needs: dependencies
runs-on: ubuntu-latest
steps:
- name: Code Checkout
uses: actions/checkout@v4

- name: Install NodeJS
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc

- name: Restore Dependencies
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ci-${{ hashFiles('**/package-lock.json') }}

- name: Code Building
run: |
make build
Expand Down
Loading

0 comments on commit d779d11

Please sign in to comment.