Skip to content
This repository was archived by the owner on Dec 22, 2019. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
93d3ede
Bump now from 16.1.3 to 16.2.0
dependabot-preview[bot] Sep 7, 2019
84999c6
Merge pull request #67 from Augora/dependabot/npm_and_yarn/develop/no…
dependabot-preview[bot] Sep 7, 2019
8b6efd2
Bump tslint from 5.19.0 to 5.20.0
dependabot-preview[bot] Sep 14, 2019
be0c1fd
Bump typescript from 3.6.2 to 3.6.3
dependabot-preview[bot] Sep 14, 2019
d1acab0
Bump ts-jest from 24.0.2 to 24.1.0
dependabot-preview[bot] Sep 14, 2019
c7bcaa7
Merge pull request #68 from Augora/dependabot/npm_and_yarn/develop/ts…
dependabot-preview[bot] Sep 14, 2019
8c4aea0
Merge pull request #69 from Augora/dependabot/npm_and_yarn/develop/ty…
dependabot-preview[bot] Sep 14, 2019
f2c560c
Merge pull request #70 from Augora/dependabot/npm_and_yarn/develop/ts…
dependabot-preview[bot] Sep 14, 2019
3564fba
Update nodejs.yml
KevinBacas Sep 17, 2019
6644c60
Remove travis integration
KevinBacas Sep 17, 2019
47d6962
Merge branch 'develop' of github.com:Augora/api-wrapper into develop
KevinBacas Sep 17, 2019
71ce372
Update nodejs.yml
KevinBacas Sep 17, 2019
20367b0
using npx
KevinBacas Sep 17, 2019
af8df9b
pass ZEIT_TOKEN
KevinBacas Sep 17, 2019
ccec472
add --token
KevinBacas Sep 17, 2019
788eb63
Remove switch step
KevinBacas Sep 18, 2019
bddd928
Add switch step
KevinBacas Sep 18, 2019
3a8e1e6
Add scope augora
KevinBacas Sep 18, 2019
e9f5a50
Add needs on step deploy
KevinBacas Sep 18, 2019
70325d6
Remove docs folder and change deploy config
KevinBacas Sep 18, 2019
f9b9883
Fix config
KevinBacas Sep 18, 2019
f0ccaa5
Add ignore in now for github workflows
KevinBacas Sep 18, 2019
76af10f
changed config and add build before deploy
KevinBacas Sep 18, 2019
5ce3cb9
Add install step
KevinBacas Sep 18, 2019
cb5657b
Add Staging + prod workflow + attempt on PR
KevinBacas Sep 18, 2019
f4ba54f
Fix on directive
KevinBacas Sep 18, 2019
9942043
use team id
KevinBacas Sep 18, 2019
1a9181f
Github Token in env
KevinBacas Sep 18, 2019
faf410b
Github Token in env
KevinBacas Sep 18, 2019
7079c77
Add feature banches in filter
KevinBacas Sep 18, 2019
5ab4f2f
Fix needs on PRreviw deploy
KevinBacas Sep 18, 2019
81b4fd4
Update PR process
KevinBacas Sep 19, 2019
21da112
Update PR process
KevinBacas Sep 19, 2019
8486258
Add slack notification
KevinBacas Sep 19, 2019
f9f98a0
Improve slack notification
KevinBacas Sep 19, 2019
8b02ae5
Improve slack notification
KevinBacas Sep 19, 2019
7e9ba8e
Update BuildAndDeployNodeJS-Staging.yml
KevinBacas Sep 27, 2019
e12b4b4
Update BuildAndDeployNodeJS-Staging.yml
KevinBacas Sep 27, 2019
fa64138
Add different run times
KevinBacas Sep 27, 2019
cad57ec
Add a better message
KevinBacas Sep 27, 2019
e8bb7b9
Add runs-on for yml to be valid
KevinBacas Sep 27, 2019
a568542
Using format() for the message
KevinBacas Sep 27, 2019
86d4c34
Update BuildAndDeployNodeJS-Staging.yml
KevinBacas Sep 27, 2019
0f006ca
Update BuildAndDeployNodeJS-Staging.yml
KevinBacas Sep 27, 2019
8f72dbe
Update BuildAndDeployNodeJS-Staging.yml
KevinBacas Sep 27, 2019
e6715ef
Bump @types/lodash from 4.14.138 to 4.14.141
dependabot-preview[bot] Sep 28, 2019
989bfd9
Merge pull request #72 from Augora/dependabot/npm_and_yarn/develop/ty…
dependabot-preview[bot] Sep 28, 2019
35391b0
Bump now from 16.2.0 to 16.3.1
dependabot-preview[bot] Oct 5, 2019
4238505
Merge pull request #73 from Augora/dependabot/npm_and_yarn/develop/no…
dependabot-preview[bot] Oct 5, 2019
3749ce5
Bump @types/lodash from 4.14.141 to 4.14.144
dependabot-preview[bot] Oct 12, 2019
5b6b315
Bump typescript from 3.6.3 to 3.6.4
dependabot-preview[bot] Oct 12, 2019
35a8896
Merge pull request #74 from Augora/dependabot/npm_and_yarn/develop/ty…
dependabot-preview[bot] Oct 12, 2019
d7dca50
Merge pull request #75 from Augora/dependabot/npm_and_yarn/develop/ty…
dependabot-preview[bot] Oct 12, 2019
6b8834c
Bump @types/jest from 24.0.18 to 24.0.19
dependabot-preview[bot] Oct 19, 2019
8ac0d0c
Merge pull request #76 from Augora/dependabot/npm_and_yarn/develop/ty…
dependabot-preview[bot] Oct 19, 2019
dbc05a1
Bump @types/jest from 24.0.19 to 24.0.20
dependabot-preview[bot] Oct 26, 2019
7f074a2
Bump now from 16.3.1 to 16.4.3
dependabot-preview[bot] Oct 26, 2019
76bf743
Merge pull request #77 from Augora/dependabot/npm_and_yarn/develop/ty…
dependabot-preview[bot] Oct 26, 2019
1c508d4
Merge pull request #78 from Augora/dependabot/npm_and_yarn/develop/no…
dependabot-preview[bot] Oct 26, 2019
8551de0
Bump @types/jest from 24.0.20 to 24.0.21
dependabot-preview[bot] Nov 2, 2019
083e1fd
Bump now from 16.4.3 to 16.4.4
dependabot-preview[bot] Nov 2, 2019
3b1802d
Merge pull request #79 from Augora/dependabot/npm_and_yarn/develop/ty…
dependabot-preview[bot] Nov 2, 2019
1a6ba60
Merge pull request #80 from Augora/dependabot/npm_and_yarn/develop/no…
dependabot-preview[bot] Nov 2, 2019
b68c09d
Bump typescript from 3.6.4 to 3.7.2
dependabot-preview[bot] Nov 9, 2019
7628567
Bump @types/jest from 24.0.21 to 24.0.22
dependabot-preview[bot] Nov 9, 2019
7fc733c
Bump @types/lodash from 4.14.144 to 4.14.146
dependabot-preview[bot] Nov 9, 2019
3d29daf
Merge pull request #81 from Augora/dependabot/npm_and_yarn/develop/ty…
dependabot-preview[bot] Nov 9, 2019
ee900f8
Bump tslint from 5.20.0 to 5.20.1
dependabot-preview[bot] Nov 9, 2019
eacc039
Merge pull request #82 from Augora/dependabot/npm_and_yarn/develop/ty…
dependabot-preview[bot] Nov 9, 2019
ab450c1
Merge pull request #83 from Augora/dependabot/npm_and_yarn/develop/ty…
dependabot-preview[bot] Nov 9, 2019
5f6d991
Merge pull request #84 from Augora/dependabot/npm_and_yarn/develop/ts…
dependabot-preview[bot] Nov 9, 2019
befedf1
Bump typedoc from 0.15.0 to 0.15.2
dependabot-preview[bot] Nov 16, 2019
92eaca5
Bump now from 16.4.4 to 16.5.2
dependabot-preview[bot] Nov 16, 2019
8e6079e
Bump @types/jest from 24.0.22 to 24.0.23
dependabot-preview[bot] Nov 16, 2019
1485f25
Merge pull request #85 from Augora/dependabot/npm_and_yarn/develop/ty…
dependabot-preview[bot] Nov 16, 2019
2c9d268
Merge pull request #87 from Augora/dependabot/npm_and_yarn/develop/ty…
dependabot-preview[bot] Nov 16, 2019
265c0d1
Merge pull request #86 from Augora/dependabot/npm_and_yarn/develop/no…
dependabot-preview[bot] Nov 16, 2019
ac4c8e4
Bump @types/lodash from 4.14.146 to 4.14.148
dependabot-preview[bot] Nov 16, 2019
c14bdea
Merge pull request #88 from Augora/dependabot/npm_and_yarn/develop/ty…
dependabot-preview[bot] Nov 16, 2019
b0201ba
Bump now from 16.5.2 to 16.6.0
dependabot-preview[bot] Nov 23, 2019
fcbcbb8
Bump ts-jest from 24.1.0 to 24.2.0
dependabot-preview[bot] Nov 23, 2019
c47f5dd
Bump @types/lodash from 4.14.148 to 4.14.149
dependabot-preview[bot] Nov 23, 2019
cca43a0
Merge pull request #90 from Augora/dependabot/npm_and_yarn/develop/ts…
dependabot-preview[bot] Nov 23, 2019
0b5d534
Merge pull request #89 from Augora/dependabot/npm_and_yarn/develop/no…
dependabot-preview[bot] Nov 23, 2019
e8cecc1
Merge pull request #91 from Augora/dependabot/npm_and_yarn/develop/ty…
dependabot-preview[bot] Nov 23, 2019
aed36d3
Bump typedoc from 0.15.2 to 0.15.3
dependabot-preview[bot] Nov 30, 2019
a14197e
Merge pull request #92 from Augora/dependabot/npm_and_yarn/develop/ty…
dependabot-preview[bot] Nov 30, 2019
64c1a6e
Bump now from 16.6.0 to 16.6.2
dependabot-preview[bot] Dec 7, 2019
b323ac5
Bump typescript from 3.7.2 to 3.7.3
dependabot-preview[bot] Dec 7, 2019
ce43326
Merge pull request #93 from Augora/dependabot/npm_and_yarn/develop/no…
dependabot-preview[bot] Dec 7, 2019
d0da3a2
Merge pull request #94 from Augora/dependabot/npm_and_yarn/develop/ty…
dependabot-preview[bot] Dec 7, 2019
6882e8c
Bump now from 16.6.2 to 16.6.3
dependabot-preview[bot] Dec 14, 2019
355cf4f
Bump typedoc from 0.15.3 to 0.15.4
dependabot-preview[bot] Dec 14, 2019
635fc7d
Merge pull request #96 from Augora/dependabot/npm_and_yarn/develop/ty…
dependabot-preview[bot] Dec 14, 2019
7ee0c92
Merge pull request #95 from Augora/dependabot/npm_and_yarn/develop/no…
dependabot-preview[bot] Dec 14, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions .github/workflows/BuildAndDeployNodeJS-Production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: CI/CD Production

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [8.x, 10.x, 12.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: yarn install, build, and test
run: |
yarn install
yarn run build
yarn test
env:
CI: true

deploy:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: yarn install, build
run: |
yarn install
yarn run build
- name: deploy
uses: mikeal/npx@master
env:
ZEIT_TOKEN: ${{ secrets.ZEIT_TOKEN }}
with:
args: "now --token $ZEIT_TOKEN --prod"
- uses: 8398a7/action-slack@v2
with:
status: ${{ job.status }}
author_name: Deployment
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: always()
59 changes: 59 additions & 0 deletions .github/workflows/BuildAndDeployNodeJS-Staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: CI/CD Staging

on:
push:
branches:
- develop
- feature/*

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# Virtual envs : https://help.github.com/en/articles/virtual-environments-for-github-actions
os: [macOS-latest, windows-latest, ubuntu-latest]
node-version: [8.x, 10.x, 12.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: yarn install, build, and test
run: |
yarn install
yarn run build
yarn test
env:
CI: true

deploy:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: yarn install, build
run: |
yarn install
yarn run build
- name: deploy
uses: mikeal/npx@master
env:
ZEIT_TOKEN: ${{ secrets.ZEIT_TOKEN }}
with:
args: "now --token $ZEIT_TOKEN"
- name: Comment on PR
env:
ZEIT_TOKEN: ${{ secrets.ZEIT_TOKEN }}
run: now --no-clipboard -t ${ZEIT_TOKEN} -m commit=${GITHUB_SHA} -m branch=${GITHUB_REF}
- name: Notify slack
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: pullreminders/slack-action@master
with:
args: ${{ format('{\"channel\":\"C4H19LCN9\",\"text\":\"{0} deployed in staging environment :rocket:\\nCommit:{1}\"}', '${GITHUB_REPOSITORY}', '${GITHUB_SHA}') }}
34 changes: 34 additions & 0 deletions .github/workflows/PRPreview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Pull Request Preview

on: [pull_request]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
# - name: Use Node.js 12.x
# uses: actions/setup-node@v1
# with:
# node-version: 12.x
# - name: yarn install, build
# run: |
# yarn install
# yarn run build
- name: Comment on PR
env:
ZEIT_TOKEN: ${{ secrets.ZEIT_TOKEN }}
run: now --no-clipboard -t ${ZEIT_TOKEN} -m commit=${GITHUB_SHA} -m branch=${GITHUB_REF}
# - uses: iam4x/now-deploy-preview-comment@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# ZEIT_TOKEN: ${{ secrets.ZEIT_TOKEN }}
# ZEIT_TEAMID: augora
# - uses: 8398a7/action-slack@v2
# with:
# status: ${{ job.status }}
# author_name: Deployment
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
# if: always()
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ jest/
# compiled files
dist/
tsDist/

# Doc files
docs/
1 change: 1 addition & 0 deletions .nowignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules/
docs/
.vscode/
.devcontainer/
.github/
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

39 changes: 28 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,53 @@
<h1 align="center">Welcome to Augora Wrapper 👋</h1>
<h1 align="center">Welcome to lbp-wrapper 👋</h1>
<p>
<img src="https://img.shields.io/badge/version-0.8.2-blue.svg?cacheSeconds=2592000" />
<a href="https://twitter.com/BacasKevin">
<img alt="Twitter: BacasKevin" src="https://img.shields.io/twitter/follow/BacasKevin.svg?style=social" target="_blank" />
<a href="https://www.npmjs.com/package/lbp-wrapper">
<img alt="Version" src="https://img.shields.io/npm/v/lbp-wrapper.svg">
</a>
<a href="https://github.com/Augora/api-wrapper#readme">
<img alt="Documentation" src="https://img.shields.io/badge/documentation-yes-brightgreen.svg" target="_blank" />
</a>
<a href="https://github.com/Augora/api-wrapper/graphs/commit-activity">
<img alt="Maintenance" src="https://img.shields.io/badge/Maintained%3F-yes-green.svg" target="_blank" />
</a>
<a href="https://github.com/Augora/api-wrapper/blob/master/LICENSE">
<img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-yellow.svg" target="_blank" />
</a>
</p>

> Augora utilities for our data sources
> Augora utilities for API calling.

### 🏠 [Homepage](https://wrapper-docs.augora.fr)

## Install

```sh
yarn add -D lbp-wrapper
npm install
```

## Run tests

```sh
yarn run test
npm run test
```

## Author

👤 **Kevin BACAS**

- Twitter: [@BacasKevin](https://twitter.com/BacasKevin)
- Github: [@KevinBacas](https://github.com/KevinBacas)
* Github: [@Augora](https://github.com/Augora)

## 🤝 Contributing

Contributions, issues and feature requests are welcome!<br />Feel free to check [issues page](https://github.com/Augora/api-wrapper/issues).

## Show your support

Give a ⭐️ if this project helped you!

---
## 📝 License

Copyright © 2019 [Kevin BACAS](https://github.com/Augora).<br />
This project is [MIT](https://github.com/Augora/api-wrapper/blob/master/LICENSE) licensed.

_This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_
***
_This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_
Loading