This repository has been archived by the owner on Nov 6, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of github.com:erxes/erxes-community into dev
- Loading branch information
Showing
370 changed files
with
23,502 additions
and
907 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,66 @@ | ||
name: Plugin polarissync Api CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
- staging | ||
- build-test | ||
paths: | ||
- 'packages/api-utils/**' | ||
- 'packages/api-plugin-template.erxes/**' | ||
- 'packages/plugin-polarissync-api/**' | ||
- '.github/workflows/plugin-polarissync-api.yaml' | ||
pull_request: | ||
branches: | ||
- dev | ||
- staging | ||
- build-test | ||
paths: | ||
- 'packages/api-utils/**' | ||
- 'packages/api-plugin-template.erxes/**' | ||
- 'packages/plugin-polarissync-api/**' | ||
- '.github/workflows/plugin-polarissync-api.yaml' | ||
|
||
jobs: | ||
api: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js 18.17.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.17.x | ||
|
||
# https://github.com/actions/cache/blob/main/examples.md#node---yarn | ||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | ||
|
||
- uses: actions/cache@v3 | ||
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-plugin-polarissync-api-${{ hashFiles('yarn.lock', 'plugin-polarissync-api/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn-plugin-polarissync-api- | ||
${{ runner.os }}-yarn- | ||
- name: Build | ||
run: | | ||
cp -r builder dist | ||
cd dist | ||
yarn install | ||
yarn build plugin polarissync | ||
cd plugin-polarissync-api/.erxes | ||
cd dist/main/.erxes/src | ||
- name: Build docker image | ||
if: github.event_name == 'push' && ( github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/build-test' ) | ||
run: | | ||
cd dist/plugin-polarissync-api/.erxes | ||
echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin | ||
docker build -t erxes/plugin-polarissync-api:${GITHUB_REF#refs/heads/} -f Dockerfile . | ||
docker push erxes/plugin-polarissync-api:${GITHUB_REF#refs/heads/} |
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,87 @@ | ||
name: Plugin polarissync UI CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
- staging | ||
- build-test | ||
paths: | ||
- "packages/erxes-ui/**" | ||
- "packages/ui-plugin-template/**" | ||
- "packages/ui-cards/**" | ||
- "packages/ui-forms/**" | ||
- "packages/ui-inbox/**" | ||
- "packages/ui-knowledgebase/**" | ||
- "packages/ui-leads/**" | ||
- "packages/ui-log/**" | ||
- "packages/ui-notifications/**" | ||
- "packages/ui-products/**" | ||
- "packages/ui-segments/**" | ||
- "packages/ui-settings/**" | ||
- "packages/ui-team/**" | ||
- "packages/ui-tags/**" | ||
- "packages/ui-polarissync/**" | ||
- "packages/plugin-polarissync-ui/**" | ||
- ".github/workflows/plugin-polarissync-ui.yaml" | ||
pull_request: | ||
branches: | ||
- dev | ||
- staging | ||
- build-test | ||
paths: | ||
- "packages/erxes-ui/**" | ||
- "packages/ui-plugin-template/**" | ||
- "packages/ui-cards/**" | ||
- "packages/ui-forms/**" | ||
- "packages/ui-inbox/**" | ||
- "packages/ui-knowledgebase/**" | ||
- "packages/ui-leads/**" | ||
- "packages/ui-log/**" | ||
- "packages/ui-notifications/**" | ||
- "packages/ui-products/**" | ||
- "packages/ui-segments/**" | ||
- "packages/ui-settings/**" | ||
- "packages/ui-team/**" | ||
- "packages/ui-tags/**" | ||
- "packages/ui-polarissync/**" | ||
- "packages/plugin-polarissync-ui/**" | ||
- ".github/workflows/plugin-polarissync-ui.yaml" | ||
|
||
jobs: | ||
ui: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js 18.17.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.17.x | ||
|
||
- name: Build | ||
run: | | ||
yarn install --frozen-lockfile | ||
cp -r packages/ui-plugin-template/.erxes packages/plugin-polarissync-ui/.erxes | ||
cp -r packages/plugin-polarissync-ui/src packages/plugin-polarissync-ui/.erxes/plugin-src | ||
cd packages/plugin-polarissync-ui | ||
yarn install | ||
yarn install-deps | ||
yarn build | ||
- name: Configure AWS credentials | ||
if: github.event_name == 'push' && ( github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/build-test') | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: us-west-2 | ||
|
||
- name: Deploy | ||
if: github.event_name == 'push' && ( github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/build-test') | ||
run: | | ||
tar -cf build.tar --directory=packages/plugin-polarissync-ui/.erxes/dist . | ||
cp build.tar packages/plugin-polarissync-ui/.erxes/dist | ||
rm -rf packages/plugin-polarissync-ui/.erxes/dist/*.js | ||
aws s3 sync packages/plugin-polarissync-ui/.erxes/dist s3://erxes-${GITHUB_REF#refs/heads/}-plugins/uis/plugin-polarissync-ui --delete |
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,66 @@ | ||
name: Plugin savings Api CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
- staging | ||
- build-test | ||
paths: | ||
- 'packages/api-utils/**' | ||
- 'packages/api-plugin-template.erxes/**' | ||
- 'packages/plugin-savings-api/**' | ||
- '.github/workflows/plugin-savings-api.yaml' | ||
pull_request: | ||
branches: | ||
- dev | ||
- staging | ||
- build-test | ||
paths: | ||
- 'packages/api-utils/**' | ||
- 'packages/api-plugin-template.erxes/**' | ||
- 'packages/plugin-savings-api/**' | ||
- '.github/workflows/plugin-savings-api.yaml' | ||
|
||
jobs: | ||
api: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js 18.17.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.17.x | ||
|
||
# https://github.com/actions/cache/blob/main/examples.md#node---yarn | ||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | ||
|
||
- uses: actions/cache@v3 | ||
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-plugin-savings-api-${{ hashFiles('yarn.lock', 'plugin-savings-api/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn-plugin-savings-api- | ||
${{ runner.os }}-yarn- | ||
- name: Build | ||
run: | | ||
cp -r builder dist | ||
cd dist | ||
yarn install | ||
yarn build plugin savings | ||
cd plugin-savings-api/.erxes | ||
cd dist/main/.erxes/src | ||
- name: Build docker image | ||
if: github.event_name == 'push' && ( github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/build-test' ) | ||
run: | | ||
cd dist/plugin-savings-api/.erxes | ||
echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin | ||
docker build -t erxes/plugin-savings-api:${GITHUB_REF#refs/heads/} -f Dockerfile . | ||
docker push erxes/plugin-savings-api:${GITHUB_REF#refs/heads/} |
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,87 @@ | ||
name: Plugin savings UI CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
- staging | ||
- build-test | ||
paths: | ||
- "packages/erxes-ui/**" | ||
- "packages/ui-plugin-template/**" | ||
- "packages/ui-cards/**" | ||
- "packages/ui-forms/**" | ||
- "packages/ui-inbox/**" | ||
- "packages/ui-knowledgebase/**" | ||
- "packages/ui-leads/**" | ||
- "packages/ui-log/**" | ||
- "packages/ui-notifications/**" | ||
- "packages/ui-products/**" | ||
- "packages/ui-segments/**" | ||
- "packages/ui-settings/**" | ||
- "packages/ui-team/**" | ||
- "packages/ui-tags/**" | ||
- "packages/ui-savings/**" | ||
- "packages/plugin-savings-ui/**" | ||
- ".github/workflows/plugin-savings-ui.yaml" | ||
pull_request: | ||
branches: | ||
- dev | ||
- staging | ||
- build-test | ||
paths: | ||
- "packages/erxes-ui/**" | ||
- "packages/ui-plugin-template/**" | ||
- "packages/ui-cards/**" | ||
- "packages/ui-forms/**" | ||
- "packages/ui-inbox/**" | ||
- "packages/ui-knowledgebase/**" | ||
- "packages/ui-leads/**" | ||
- "packages/ui-log/**" | ||
- "packages/ui-notifications/**" | ||
- "packages/ui-products/**" | ||
- "packages/ui-segments/**" | ||
- "packages/ui-settings/**" | ||
- "packages/ui-team/**" | ||
- "packages/ui-tags/**" | ||
- "packages/ui-savings/**" | ||
- "packages/plugin-savings-ui/**" | ||
- ".github/workflows/plugin-savings-ui.yaml" | ||
|
||
jobs: | ||
ui: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js 18.17.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.17.x | ||
|
||
- name: Build | ||
run: | | ||
yarn install --frozen-lockfile | ||
cp -r packages/ui-plugin-template/.erxes packages/plugin-savings-ui/.erxes | ||
cp -r packages/plugin-savings-ui/src packages/plugin-savings-ui/.erxes/plugin-src | ||
cd packages/plugin-savings-ui | ||
yarn install | ||
yarn install-deps | ||
yarn build | ||
- name: Configure AWS credentials | ||
if: github.event_name == 'push' && ( github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/build-test') | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: us-west-2 | ||
|
||
- name: Deploy | ||
if: github.event_name == 'push' && ( github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/build-test') | ||
run: | | ||
tar -cf build.tar --directory=packages/plugin-savings-ui/.erxes/dist . | ||
cp build.tar packages/plugin-savings-ui/.erxes/dist | ||
rm -rf packages/plugin-savings-ui/.erxes/dist/*.js | ||
aws s3 sync packages/plugin-savings-ui/.erxes/dist s3://erxes-${GITHUB_REF#refs/heads/}-plugins/uis/plugin-savings-ui --delete |
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
Oops, something went wrong.