Skip to content

Commit

Permalink
Merge pull request #37 from GregoryGost/develop
Browse files Browse the repository at this point in the history
v3.0.1
  • Loading branch information
GregoryGost authored Sep 29, 2024
2 parents 5f053ca + 2b44638 commit 235845e
Show file tree
Hide file tree
Showing 26 changed files with 1,614 additions and 1,199 deletions.
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ updates:
timezone: 'Europe/Moscow'
labels:
- actions
reviewers:
- GregoryGost
groups:
actions-minor:
update-types:
Expand All @@ -25,6 +27,8 @@ updates:
labels:
- pnpm
- dependencies
reviewers:
- GregoryGost
groups:
development:
dependency-type: development
Expand Down
2 changes: 1 addition & 1 deletion .github/linters/.eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,5 @@ rules:
'@typescript-eslint/semi': 'off',
'@typescript-eslint/space-before-function-paren': 'off',
'@typescript-eslint/type-annotation-spacing': 'error',
'@typescript-eslint/unbound-method': 'error',
'@typescript-eslint/unbound-method': 'error'
}
18 changes: 17 additions & 1 deletion .github/linters/.markdown-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,20 @@ MD004:

# Ordered list item prefix
MD029:
style: one
style: ordered

# Spaces after list markers
MD030:
ul_single: 1
ol_single: 1
ul_multi: 1
ol_multi: 1

# Code block style
MD046:
style: fenced

# Line length
MD013:
tables: false
line_length: 120
2 changes: 1 addition & 1 deletion .github/linters/.yaml-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ rules:
present: false
line-length:
level: warning
max: 80
max: 120
allow-non-breakable-words: true
allow-non-breakable-inline-mappings: true
21 changes: 14 additions & 7 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@
name: Check Transpiled JavaScript

on:
pull_request:
branches:
- develop
push:
branches:
- main
- develop
pull_request:

permissions:
contents: read
Expand All @@ -31,7 +32,7 @@ jobs:

- name: Install pnpm
id: setup-pnpm
uses: pnpm/action-setup@v3
uses: pnpm/action-setup@v4
with:
version: ^9

Expand All @@ -50,18 +51,24 @@ jobs:
id: build
run: pnpm run bundle

# This will fail the workflow if the PR wasn't created by Dependabot.
# This will fail the workflow if the `dist/` directory is different than
# expected.
- name: Compare Directories
id: diff
run: |
if [ ! -d dist/ ]; then
echo "Expected dist/ directory does not exist. See status below:"
ls -la ./
exit 1
fi
if [ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff --ignore-space-at-eol --text dist/
git diff --stat --ignore-space-at-eol --text dist/
exit 1
fi
# If `dist/` was different than expected, and this was not a Dependabot
# PR, upload the expected version as a workflow artifact.
# If `dist/` was different than expected, upload the expected version as a
# workflow artifact.
- if: ${{ failure() && steps.diff.outcome == 'failure' }}
name: Upload Artifact
id: upload
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ name: Continuous Integration

on:
pull_request:
branches:
- develop
push:
branches:
- main
- develop

permissions:
Expand All @@ -22,7 +23,7 @@ jobs:

- name: Install pnpm
id: setup-pnpm
uses: pnpm/action-setup@v3
uses: pnpm/action-setup@v4
with:
version: ^9

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ name: CodeQL
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
schedule:
- cron: '31 7 * * 3'

permissions: read-all

jobs:
analyze:
name: Analyze
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/develop-versioning.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
name: Develop versioning

on:
push:
pull_request:
branches:
- develop
types:
- closed

permissions:
contents: write

jobs:
develop-version:
if: github.event.pull_request.merged == true
name: Develop versioning job
runs-on: ubuntu-latest

Expand Down
57 changes: 57 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Lint Codebase

on:
push:
branches:
- develop
pull_request:
branches:
- develop

permissions:
contents: read
packages: read
statuses: write

jobs:
lint:
name: Lint Codebase
runs-on: ubuntu-latest

steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install pnpm
id: setup-pnpm
uses: pnpm/action-setup@v4
with:
version: ^9

- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: pnpm

- name: Install Dependencies
id: pnpm-install
run: pnpm i --frozen-lockfile

- name: Lint Codebase
id: super-linter
uses: super-linter/super-linter/slim@v7
env:
DEFAULT_BRANCH: develop
FILTER_REGEX_EXCLUDE: dist/**/*
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TYPESCRIPT_DEFAULT_STYLE: prettier
VALIDATE_ALL_CODEBASE: true
VALIDATE_JAVASCRIPT_STANDARD: false
VALIDATE_TYPESCRIPT_STANDARD: false
VALIDATE_JSCPD: false
VALIDATE_BASH_EXEC: false
24 changes: 20 additions & 4 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
{
"default": true,
"MD051": false,
"MD013": false
}
"MD004": {
"style": "dash"
},
"MD029": {
"style": "ordered"
},
"MD030": {
"ul_single": 1,
"ol_single": 1,
"ol_multi": 1,
"ul_multi": 1
},
"MD046": {
"style": "fenced"
},
"MD013": {
"tables": false,
"line_length": 120
}
}
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
dist/
node_modules/
coverage/

pnpm-lock.yaml
16 changes: 16 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"printWidth": 120,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"quoteProps": "as-needed",
"jsxSingleQuote": false,
"trailingComma": "none",
"bracketSpacing": true,
"bracketSameLine": true,
"arrowParens": "avoid",
"proseWrap": "always",
"htmlWhitespaceSensitivity": "css",
"endOfLine": "lf"
}
9 changes: 0 additions & 9 deletions .prettierrc.json

This file was deleted.

Loading

0 comments on commit 235845e

Please sign in to comment.