-
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.
feat: migrate action from datalens public (#2)
* feat: migrate action from datalens public * docs: add docs * refactor: merge package.json * feat: add test task
- Loading branch information
1 parent
7ea1c50
commit 7034d46
Showing
15 changed files
with
11,102 additions
and
838 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules/ |
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,3 @@ | ||
{ | ||
"extends": ["@gravity-ui/eslint-config"] | ||
} |
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 |
---|---|---|
|
@@ -28,3 +28,7 @@ jobs: | |
- name: Lint PR | ||
run: | | ||
task lint | ||
- name: Test | ||
run: | | ||
task test |
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
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 |
---|---|---|
@@ -1,27 +1,35 @@ | ||
name: "Template" | ||
description: "Action for validate PR tilte for more more semantic meaning to your git history" | ||
name: "Commitlint PR Title" | ||
description: "Commitlints PR title input according to config" | ||
|
||
inputs: | ||
placeholder: | ||
description: "Placeholder input to be replaced by real inputs" | ||
required: true | ||
default: "placeholder" | ||
|
||
outputs: | ||
placeholder: | ||
description: "Placeholder output to be replaced by real outputs" | ||
value: ${{steps.placeholder.outputs.placeholder }} | ||
github_pr_title: | ||
description: "GitHub PR title" | ||
default: ${{ github.event.pull_request.title }} | ||
|
||
runs: | ||
using: "composite" | ||
using: composite | ||
|
||
steps: | ||
- name: Placeholder | ||
id: placeholder | ||
- name: Setup Node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "22" | ||
|
||
- name: Install Dependencies | ||
shell: bash | ||
working-directory: ${{ github.action_path }} | ||
run: | | ||
npm ci | ||
- name: Lint Commit | ||
id: validation | ||
shell: bash | ||
working-directory: ${{ github.action_path }} | ||
run: | | ||
echo "::set-output name=placeholder::${{ inputs.placeholder }}" | ||
echo "$PR_TITLE" | npx commitlint --config ${{ github.action_path }}/src/commitlint.config.js | ||
env: | ||
PR_TITLE: ${{ inputs.github_pr_title }} | ||
|
||
# https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#branding | ||
branding: | ||
icon: "message-square" | ||
color: "gray-dark" |
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,3 @@ | ||
module.exports = { | ||
presets: [["@babel/preset-env", { targets: { node: "current" } }]], | ||
}; |
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,6 @@ | ||
export default { | ||
transform: { | ||
"^.+\\.(js|jsx)$": "babel-jest", | ||
}, | ||
transformIgnorePatterns: ["node_modules/(?!@ngrx|(?!deck.gl)|ng-dynamic)"], | ||
}; |
Oops, something went wrong.