forked from codigoencasa/bot-whatsapp
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
111 changed files
with
3,704 additions
and
1,382 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 @@ | ||
packages/docs/* |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# These are supported funding model platforms | ||
|
||
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] | ||
patreon: leifermendez | ||
open_collective: bot-whatsapp | ||
ko_fi: # Replace with a single Ko-fi username | ||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
custom: https://www.buymeacoffee.com/leifermendez |
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,26 +1,58 @@ | ||
name: Test / Coverage | ||
name: BotWhatsapp Build-Test | ||
|
||
on: | ||
push: | ||
branches: [dev] | ||
pull_request: | ||
branches: [main] | ||
branches: | ||
- dev | ||
|
||
jobs: | ||
build: | ||
############ BUILD PACKAGE ############ | ||
build-package: | ||
name: Build Package | ||
runs-on: ubuntu-latest | ||
needs: | ||
- test-unit | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
cache: 'yarn' | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
- run: corepack enable | ||
|
||
- name: Install NPM Dependencies | ||
run: yarn install --immutable --network-timeout 300000 | ||
|
||
strategy: | ||
matrix: | ||
node-version: [16.x] | ||
- name: Build Package | ||
run: yarn build | ||
|
||
- name: Build Eslint rules | ||
run: yarn lint:fix | ||
|
||
############ UNIT TEST ############ | ||
test-unit: | ||
name: Unit Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm install | ||
- run: npm run build --if-present | ||
- run: npm run test.unit | ||
- run: npm run test.coverage | ||
node-version: 16.x | ||
cache: 'yarn' | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
- run: corepack enable | ||
|
||
- name: Install NPM Dependencies | ||
run: yarn install --immutable --network-timeout 300000 | ||
|
||
- name: Unit Tests | ||
run: yarn 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: BotWhatsapp Releases(DEV) | ||
|
||
on: | ||
push: | ||
branches: | ||
- next-release | ||
|
||
jobs: | ||
############ RELEASE ############ | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
cache: 'yarn' | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
- run: corepack enable | ||
|
||
- name: Install NPM Dependencies | ||
run: yarn install --immutable --network-timeout 300000 | ||
|
||
- name: Build Package | ||
run: yarn build | ||
|
||
- name: Release @bot-whatsapp/bot | ||
run: yarn node ./scripts/release.js --name=bot --version= --token="${{ secrets.NPM_TOKEN }}" | ||
|
||
- name: Release @bot-whatsapp/cli | ||
run: yarn node ./scripts/release.js --name=cli --version= --token="${{ secrets.NPM_TOKEN }}" | ||
|
||
- name: Release @bot-whatsapp/create-bot-whatsapp | ||
run: yarn node ./scripts/release.js --name=create-bot-whatsapp --version= --token="${{ secrets.NPM_TOKEN }}" | ||
|
||
- name: Release @bot-whatsapp/database | ||
run: yarn node ./scripts/release.js --name=database --version= --token="${{ secrets.NPM_TOKEN }}" | ||
|
||
- name: Release @bot-whatsapp/provider | ||
run: yarn node ./scripts/release.js --name=provider --version= --token="${{ secrets.NPM_TOKEN }}" | ||
|
||
- name: Commit Versioning & Push changes | ||
uses: actions-js/push@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
message: 'ci(version): :zap: automatic - "${date}" updated versions every packages' | ||
branch: 'dev' |
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,60 @@ | ||
name: BotWhatsapp Releases(Prod) | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*.*.*' | ||
|
||
jobs: | ||
############ RELEASE ############ | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
|
||
- name: Set output | ||
id: vars | ||
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
cache: 'yarn' | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
- run: corepack enable | ||
|
||
- name: Install NPM Dependencies | ||
run: yarn install --immutable --network-timeout 300000 | ||
|
||
- name: Build Package | ||
run: yarn build | ||
|
||
- name: Release @bot-whatsapp/bot | ||
run: yarn node ./scripts/release.js --name=bot --version="${{ steps.vars.outputs.tag }}" --token="${{ secrets.NPM_TOKEN }}" | ||
|
||
- name: Release @bot-whatsapp/cli | ||
run: yarn node ./scripts/release.js --name=cli --version="${{ steps.vars.outputs.tag }}" --token="${{ secrets.NPM_TOKEN }}" | ||
|
||
- name: Release @bot-whatsapp/create-bot-whatsapp | ||
run: yarn node ./scripts/release.js --name=create-bot-whatsapp --version="${{ steps.vars.outputs.tag }}" --token="${{ secrets.NPM_TOKEN }}" | ||
|
||
- name: Release @bot-whatsapp/database | ||
run: yarn node ./scripts/release.js --name=database --version="${{ steps.vars.outputs.tag }}" --token="${{ secrets.NPM_TOKEN }}" | ||
|
||
- name: Release @bot-whatsapp/provider | ||
run: yarn node ./scripts/release.js --name=provider --version="${{ steps.vars.outputs.tag }}" --token="${{ secrets.NPM_TOKEN }}" | ||
|
||
- name: Commit Versioning & Push changes | ||
uses: actions-js/push@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
message: 'ci(version): :zap: automatic - "${date}" updated versions every packages' | ||
branch: 'dev' |
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,5 +1,5 @@ | ||
packages/**/lib | ||
packages/docs | ||
packages/docs/*.json | ||
**/.git | ||
**/.svn | ||
**/.hg | ||
|
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 |
---|---|---|
|
@@ -5,6 +5,9 @@ | |
"cli", | ||
"bot", | ||
"provider", | ||
"adapter" | ||
"adapter", | ||
"ci", | ||
"starters", | ||
"conflict" | ||
] | ||
} |
Oops, something went wrong.