@corva/create-app 0.54.0-1 → 0.54.0-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -1
- package/template_extensions/corva/.commitlintrc.json +6 -0
- package/template_extensions/corva/.github/pull_request_template.md +14 -0
- package/template_extensions/corva/.github/workflows/code-checks.yml +28 -0
- package/template_extensions/corva/.github/workflows/develop.yml +29 -0
- package/template_extensions/corva/.github/workflows/feat-fix-delete.yml +16 -0
- package/template_extensions/corva/.github/workflows/feat-fix.yml +32 -0
- package/template_extensions/corva/.github/workflows/release-fix-X.X.X.yml +18 -0
- package/template_extensions/corva/.github/workflows/validate-pr-title.yml +19 -0
- package/template_extensions/corva/.husky/commit-msg +5 -0
- package/template_extensions/corva/.husky/pre-commit +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@corva/create-app",
|
|
3
|
-
"version": "0.54.0-
|
|
3
|
+
"version": "0.54.0-2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Create an app to use it in CORVA.AI",
|
|
6
6
|
"keywords": [
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"bin/**/*.js",
|
|
25
25
|
"lib/**/*.js",
|
|
26
26
|
"templates",
|
|
27
|
+
"template_extensions",
|
|
27
28
|
"common"
|
|
28
29
|
],
|
|
29
30
|
"scripts": {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Description
|
|
2
|
+
|
|
3
|
+
[Optional]: a screenshot / video / text description / please check the ticket using the ticket ID
|
|
4
|
+
|
|
5
|
+
### To be merged the changes also should be approved by:
|
|
6
|
+
|
|
7
|
+
- QA, PO ( for features / fixes / tech tickets that also require QA/PO validation )
|
|
8
|
+
- Designer ( when there're design changes )
|
|
9
|
+
- BE developer ( when there're MongoDB queries, to be sure they are optimal )
|
|
10
|
+
|
|
11
|
+
### Checklist
|
|
12
|
+
|
|
13
|
+
- [ ] I have commented possibly difficult-to-understand places
|
|
14
|
+
- [ ] I have covered the new code with the tests _([Our tests guide](https://corva.notion.site/Tests-guide-520058fa52454e5aa08ef9225d7d76e9))_
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
name: Code checks (lint, tests, etc.)
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- feat/*
|
|
7
|
+
- fix/*
|
|
8
|
+
- develop
|
|
9
|
+
- release-fix/[0-9]+.[0-9]+.[0-9]+
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
code-checks:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v2
|
|
16
|
+
- uses: actions/setup-node@v2
|
|
17
|
+
with:
|
|
18
|
+
node-version: 16
|
|
19
|
+
cache: 'yarn'
|
|
20
|
+
|
|
21
|
+
- name: Install dependencies
|
|
22
|
+
run: yarn
|
|
23
|
+
|
|
24
|
+
- name: Run linter
|
|
25
|
+
run: yarn lint
|
|
26
|
+
|
|
27
|
+
- name: Run tests
|
|
28
|
+
run: yarn coverage
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
name: develop branch flow
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches:
|
|
5
|
+
- 'develop'
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
develop-flow:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
steps:
|
|
11
|
+
- name: develop branch flow
|
|
12
|
+
id: shared-workflow
|
|
13
|
+
uses: corva-ai/gh-actions/shared-dc-workflows/develop@develop
|
|
14
|
+
with:
|
|
15
|
+
is-upload-to-qa: true
|
|
16
|
+
qa-api-key: ${{ secrets.API_KEY_QA }}
|
|
17
|
+
is-upload-to-prod: false
|
|
18
|
+
prod-api-key: ${{ secrets.API_KEY }}
|
|
19
|
+
npm-token: ${{ secrets.CORVA_NPM_TOKEN }}
|
|
20
|
+
github-pr-approve-token: ${{ secrets.GH_ACTIONS_AUTOMATION }}
|
|
21
|
+
# github-pr-approve-token: ${{ secrets.GH_ACTIONS_AUTOMATION }}
|
|
22
|
+
# - name: trigger circle ci develop e2e tests
|
|
23
|
+
# if: ${{ steps.shared-workflow.outputs.is-release-created }}
|
|
24
|
+
# run: |
|
|
25
|
+
# curl --request POST \
|
|
26
|
+
# --url https://circleci.com/api/v2/project/gh/corva-ai/${{ github.event.repository.name }}/pipeline \
|
|
27
|
+
# --header 'Circle-Token: ${{ secrets.CIRCLE_CI_API_TOKEN }}' \
|
|
28
|
+
# --header 'content-type: application/json' \
|
|
29
|
+
# --data '{"branch": "develop", "parameters":{"run_develop_e2e_tests_workflow":true,"app_repository_name":"${{ github.event.repository.name }}"}}'
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
name: branch deletion flow
|
|
2
|
+
on:
|
|
3
|
+
delete:
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
branch-deletion-flow:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
if: startsWith(github.event.ref, 'feat/') || startsWith(github.event.ref, 'fix/')
|
|
9
|
+
steps:
|
|
10
|
+
- name: branch deletion flow
|
|
11
|
+
uses: corva-ai/gh-actions/shared-dc-workflows/feat-fix-delete@develop
|
|
12
|
+
with:
|
|
13
|
+
is-delete-from-qa: true
|
|
14
|
+
qa-api-key: ${{ secrets.API_KEY_QA }}
|
|
15
|
+
is-delete-from-prod: false
|
|
16
|
+
prod-api-key: ${{ secrets.API_KEY }}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
name: feat/fix branch flow
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches:
|
|
5
|
+
- feat/*
|
|
6
|
+
- fix/*
|
|
7
|
+
|
|
8
|
+
concurrency:
|
|
9
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
10
|
+
cancel-in-progress: true
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
feat-fix-flow:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
steps:
|
|
16
|
+
- name: feat/fix flow
|
|
17
|
+
uses: corva-ai/gh-actions/shared-dc-workflows/feat-fix@develop
|
|
18
|
+
with:
|
|
19
|
+
is-upload-to-qa: true
|
|
20
|
+
qa-api-key: ${{ secrets.API_KEY_QA }}
|
|
21
|
+
is-upload-to-prod: false
|
|
22
|
+
prod-api-key: ${{ secrets.API_KEY }}
|
|
23
|
+
npm-token: ${{ secrets.CORVA_NPM_TOKEN }}
|
|
24
|
+
jira-user-email: ${{ secrets.JIRA_AUTOTEST_USERNAME }}
|
|
25
|
+
jira-api-token: ${{ secrets.JIRA_AUTOTEST_API_TOKEN }}
|
|
26
|
+
# - name: trigger circle ci branch e2e tests
|
|
27
|
+
# run: |
|
|
28
|
+
# curl --request POST \
|
|
29
|
+
# --url https://circleci.com/api/v2/project/gh/corva-ai/${{ github.event.repository.name }}/pipeline \
|
|
30
|
+
# --header 'Circle-Token: ${{ secrets.CIRCLE_CI_API_TOKEN }}' \
|
|
31
|
+
# --header 'content-type: application/json' \
|
|
32
|
+
# --data '{"branch": "${{ github.ref_name }}", "parameters":{"run_branch_e2e_tests_workflow":true,"app_repository_name":"${{ github.event.repository.name }}"}}'
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
name: release-fix/X.X.X branch flow
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches:
|
|
5
|
+
- 'release-fix/[0-9]+.[0-9]+.[0-9]+'
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
release-fix-flow:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
steps:
|
|
11
|
+
- name: release-fix/X.X.X flow
|
|
12
|
+
uses: corva-ai/gh-actions/shared-dc-workflows/release-fix-X.X.X@develop
|
|
13
|
+
with:
|
|
14
|
+
is-upload-to-qa: true
|
|
15
|
+
qa-api-key: ${{ secrets.API_KEY_QA }}
|
|
16
|
+
is-upload-to-prod: false
|
|
17
|
+
prod-api-key: ${{ secrets.API_KEY }}
|
|
18
|
+
npm-token: ${{ secrets.CORVA_NPM_TOKEN }}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
name: 'PR title matches "<type>(<scope>): <description>"'
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
types:
|
|
6
|
+
- opened
|
|
7
|
+
- edited
|
|
8
|
+
- synchronize
|
|
9
|
+
|
|
10
|
+
concurrency:
|
|
11
|
+
group: ${{ github.workflow }}-${{ github.head_ref }}
|
|
12
|
+
cancel-in-progress: true
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
validate-pr-title:
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
steps:
|
|
18
|
+
- name: Validate PR title
|
|
19
|
+
uses: corva-ai/gh-actions/shared-dc-workflows/validate-pr-title@develop
|