Skip to content

Commit

Permalink
Merge pull request #6 from jotacemarin/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
jotacemarin authored Feb 9, 2024
2 parents ea6138d + 9031eec commit 5ff2f11
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 2 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/cd-dev-botnorrea-v2-telegram.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
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 serverless framework
run: npm install -g serverless

- 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: Setup credentials
run: serverless config credentials --provider aws --key ${{ secrets.KEY_ID }} --secret ${{ secrets.SECRET_ACCESS_KEY }} --profile ${{ secrets.PROFILE }}

- name: Deploy
run: npm run dev:deploy
env:
AWS_ACCESS_KEY_ID: ${{ secrets.KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.SECRET_ACCESS_KEY }}
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 5ff2f11

Please sign in to comment.