Skip to content

Commit

Permalink
Pipeline creation (#3)
Browse files Browse the repository at this point in the history
* Develop (#2)

* rename pipeline

* rename pipeline

* rename ci and cd files, add json creation and deployment
  • Loading branch information
jotacemarin authored Feb 8, 2024
1 parent a6001c8 commit 894a4e3
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 2 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/cd-dev-botnorrea-v2-telegram.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: cd-dev-botnorrea-v2-telegram

on:
push:
branches: [develop]

jobs:
unit-test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: ["18.x"]

steps:
- uses: actions/checkout@v3

- name: Using Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm i

- name: Run tests
run: npm run coverage

- name: Check coverage
uses: VeryGoodOpenSource/[email protected]
with:
path: "coverage/lcov.info"
min_coverage: 30

- name: Create JSON
id: create-json
uses: jsdaniell/[email protected]
with:
name: "dev.json"
json: ${{ secrets.CONFIG_FILE_DEV }}
dir: "config/"

- name: Deploy
run: npm run dev:deploy
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
node-version: ["18.x"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Using Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

Expand Down

0 comments on commit 894a4e3

Please sign in to comment.