Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Volodymyr Saakian committed Mar 26, 2020
2 parents 74165b2 + 3fa3a0a commit 37def03
Show file tree
Hide file tree
Showing 11 changed files with 2,182 additions and 978 deletions.
Binary file added .DS_Store
Binary file not shown.
40 changes: 40 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: NodeJs_ci

on:
push:
branches: [develop]

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 12.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
with:
name: artifact
path: artifacts

- name: Download artifact
uses: actions/download-artifact@v1.0.0
with:
# Artifact name
name: artifact
# Destination path
path: artifacts
- run: npm ci
- run: npm test
env:
CI: true
31 changes: 31 additions & 0 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: NodeJs_cd

on:
push:
branches: [master]
tags:
- v1

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 12.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm i -g pm2
- run: npm ci
- run: npm test
- run: npm run deploy:dev
env:
CI: true
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,5 @@ dist

src/config/firebaseKey.json

firebaseKey.json
firebaseKey.json
.DS_Store
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Exchange-rates-ukraine-bot

![](https://img.shields.io/github/workflow/status/lossless1/exchange-rates-ukraine-bot/NodeJs_ci)
![](https://img.shields.io/github/workflow/status/lossless1/exchange-rates-ukraine-bot/NodeJs_cd)

Telegram bot to showing exchange rates every day

Json resources
Expand Down
Empty file added artifacts/1
Empty file.
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
module.exports = {
testMatch: ['**/tests/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[tj]s?(x)'],
verbose: true,
};
Loading

0 comments on commit 37def03

Please sign in to comment.