mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-20 20:49:15 +00:00
ci: remove stuff
This commit is contained in:
52
.github/workflows/check-provider-major.yml
vendored
52
.github/workflows/check-provider-major.yml
vendored
@@ -1,52 +0,0 @@
|
|||||||
name: Rev Major Providers
|
|
||||||
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: '0 9 * * *'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
check-npm:
|
|
||||||
name: Install Dependencies
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
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
|
|
||||||
|
|
||||||
- name: Check Baileys
|
|
||||||
run: yarn node ./scripts/checker.js --name=baileys --stable=true
|
|
||||||
|
|
||||||
- name: Check Venom
|
|
||||||
run: yarn node ./scripts/checker.js --name=venom --stable=true
|
|
||||||
|
|
||||||
- name: Check web-whatsapp
|
|
||||||
run: yarn node ./scripts/checker.js --name=web-whatsapp --stable=true
|
|
||||||
|
|
||||||
- name: Check Meta
|
|
||||||
run: yarn node ./scripts/checker.js --name=meta --stable=true
|
|
||||||
|
|
||||||
- name: Check Twilio
|
|
||||||
run: yarn node ./scripts/checker.js --name=twilio --stable=true
|
|
||||||
|
|
||||||
- name: Add and commit changes to gh-pages branch
|
|
||||||
run: |
|
|
||||||
git config --local user.email 'action@github.com'
|
|
||||||
git config --local user.name 'GitHub Action'
|
|
||||||
git add .
|
|
||||||
|
|
||||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
|
||||||
with:
|
|
||||||
commit_message: 'ci(providers): check provider versions'
|
|
||||||
create_branch: true
|
|
||||||
branch: feature/providers-major
|
|
||||||
52
.github/workflows/ci.yml
vendored
52
.github/workflows/ci.yml
vendored
@@ -56,55 +56,3 @@ jobs:
|
|||||||
|
|
||||||
- name: Unit Tests
|
- name: Unit Tests
|
||||||
run: yarn test
|
run: yarn test
|
||||||
|
|
||||||
############ UNIT TEST ############
|
|
||||||
check-providers:
|
|
||||||
name: Check Providers Versions
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
outputs:
|
|
||||||
commit: ${{ steps.vars.outputs.commit }}
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
ref: ${{github.event.after}}
|
|
||||||
persist-credentials: false
|
|
||||||
|
|
||||||
- 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: Check Baileys
|
|
||||||
run: yarn node ./scripts/checker.js --name=baileys --stable=true
|
|
||||||
|
|
||||||
- name: Check Venom
|
|
||||||
run: yarn node ./scripts/checker.js --name=venom --stable=true
|
|
||||||
|
|
||||||
- name: Check web-whatsapp
|
|
||||||
run: yarn node ./scripts/checker.js --name=web-whatsapp --stable=true
|
|
||||||
|
|
||||||
- name: Check Meta
|
|
||||||
run: yarn node ./scripts/checker.js --name=meta --stable=true
|
|
||||||
|
|
||||||
- name: Check Twilio
|
|
||||||
run: yarn node ./scripts/checker.js --name=twilio --stable=true
|
|
||||||
|
|
||||||
- name: Set output
|
|
||||||
id: vars
|
|
||||||
run: echo "commit=$(git log --format=%B -n 1 ${{github.event.after}})" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: Commit & Push changes
|
|
||||||
uses: actions-js/push@master
|
|
||||||
with:
|
|
||||||
branch: feature/providers-major
|
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
force: true
|
|
||||||
|
|||||||
Reference in New Issue
Block a user