Skip to content

Commit

Permalink
Merge pull request #26 from 42devs/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
themakunga authored Dec 21, 2021
2 parents 929e9ee + b6049d0 commit f658c5c
Show file tree
Hide file tree
Showing 70 changed files with 556 additions and 2,758 deletions.
36 changes: 36 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
version: 2
updates:
# Fetch and update latest `npm` packages
- package-ecosystem: npm
directory: '/'
schedule:
interval: daily
time: '09:00'
open-pull-requests-limit: 10
reviewers:
- themakunga
- hugazo
assignees:
- themakunga
- hugazo
commit-message:
prefix: fix
prefix-development: chore
include: scope
# Fetch and update latest `github-actions` pkgs
- package-ecosystem: github-actions
directory: '/'
schedule:
interval: daily
time: '10:00'
open-pull-requests-limit: 10
reviewers:
- themakunga
- hugazo
assignees:
- themakunga
- hugazo
commit-message:
prefix: fix
prefix-development: chore
include: scope
2 changes: 2 additions & 0 deletions .github/semantic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
titleAndCommits: true
allowMergeCommits: true
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: ci

on:
push:
branches:
- develop
pull_request:
branches:
- develop

jobs:
ci:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node: [12, 14, 16]

steps:
- name: Checkout 🛎
uses: actions/checkout@master

- name: Setup node env 🏗
uses: actions/setup-node@v2.1.5
with:
node-version: ${{ matrix.node }}
check-latest: true

- name: Get yarn cache directory path 🛠
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Cache node_modules 📦
uses: actions/cache@v2.1.4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies 👨🏻‍💻
run: yarn

- name: Run linter 👀
run: yarn lint

- name: Run tests 🧪
run: yarn test
80 changes: 50 additions & 30 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,56 @@
name: coverage
name: Running Code Coverage

on:
push:
branches:
- main`
pull_request:
branches:
- main
- develop

jobs:
test:
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v2
- name: setup node
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: install
run: yarn install
- name: test
run: yarn test
coverage:
runs-on: ubuntu-20.04
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12, 13, 14, 15, 15]

steps:
- name: checkout
uses: actions/checkout@v2
- name: setup node
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: install
run: yarn install
- name: codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
verbose: true
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 2

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

- name: Get yarn cache directory path 🛠
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Cache node_modules 📦
uses: actions/cache@v2.1.4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: npm install
continue-on-error: true

- name: Run tests
run: npm run test
continue-on-error: true


- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
42 changes: 42 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: generate docs
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
update-docs:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: setup node
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Get yarn cache directory path 🛠
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Cache node_modules 📦
uses: actions/cache@v2.1.4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: install
run: yarn install
- name: generate docs
run: yarn doc
- name: push to doc branch
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: docs
FOLDER: docs
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GitHub will automatically add this - you don't need to bother getting a token
MESSAGE: "docs: ({sha}) {msg}"
12 changes: 12 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Get yarn cache directory path 🛠
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Cache node_modules 📦
uses: actions/cache@v2.1.4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: install
run: yarn install
- name: build
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
dist
update_docs
docs
# Created by https://www.gitignore.io/api/node,linux,macos,windows,webstorm,webstorm+all
# Edit at https://www.gitignore.io/?templates=node,linux,macos,windows,webstorm,webstorm+all

Expand Down
3 changes: 1 addition & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
npm run lint
npm run changelog
git add CHANGELOG.md
npm run doc
git add docs/

17 changes: 16 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

## [v3.0.0](https://github.com/42devs/transbank-sdk-node/compare/v3.0.0...v3.0.0)
## [v3.0.0](https://github.com/42devs/transbank-sdk-node/compare/v3.2.0...v3.0.0)

### Commits

- fix: remove docs from repo [`f343ef6`](https://github.com/42devs/transbank-sdk-node/commit/f343ef6a7712ee6fc8e7e330f9085ad577ba69d1)
- fix: testing codecov [`b7506dd`](https://github.com/42devs/transbank-sdk-node/commit/b7506dd966274393adbeba962b6ac5847bc43cce)
- feat: add test mall create transaction [`14cad64`](https://github.com/42devs/transbank-sdk-node/commit/14cad646142b00ca8d5d5a566802f0c7edb256e8)
- feat: add mall transaction create function [`a3788c7`](https://github.com/42devs/transbank-sdk-node/commit/a3788c748a574a5a0fda8df1a96d0aea0f4a5262)

## [v3.2.0](https://github.com/42devs/transbank-sdk-node/compare/v3.1.0...v3.2.0) - 2021-12-17

### Commits

- feat: add coverage [`754073f`](https://github.com/42devs/transbank-sdk-node/commit/754073fdb7ac9b1280c3c8008be813bc704f4497)

## [v3.1.0](https://github.com/42devs/transbank-sdk-node/compare/v3.0.0...v3.1.0) - 2021-12-17

### Commits

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ you can read all the methods in the [docs](https://42devs.github.io/transbank-sd

## Roadmap

- [ ] Normal Transaction
- [x] Normal Transaction
- [x] Create Transation
- [x] Commit Transaction
- [x] Transaction Status
- [ ] Reverse or Cancel Transaction
- [ ] Capture Transaction
- [x] Reverse or Cancel Transaction
- [x] Capture Transaction
- [ ] Mall Transaction
- [ ] Create Mall Transation
- [ ] Commit Mall Transaction
Expand Down
29 changes: 0 additions & 29 deletions docs/assets/highlight.css

This file was deleted.

Loading

0 comments on commit f658c5c

Please sign in to comment.