Skip to content

Commit 31ee9f8

Browse files
Merge pull request #25 from Flutterwave/dev
Pull changes from dev branch
2 parents 0a436af + df4928e commit 31ee9f8

File tree

108 files changed

+13373
-28375
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+13373
-28375
lines changed

.angular-cli.json

Lines changed: 0 additions & 57 deletions
This file was deleted.

.editorconfig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Editor configuration, see http://editorconfig.org
1+
# Editor configuration, see https://editorconfig.org
22
root = true
33

44
[*]
@@ -8,6 +8,9 @@ indent_size = 2
88
insert_final_newline = true
99
trim_trailing_whitespace = true
1010

11+
[*.ts]
12+
quote_type = single
13+
1114
[*.md]
1215
max_line_length = off
1316
trim_trailing_whitespace = false
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Review changes on Dev (Commits/PRs)
2+
on:
3+
push:
4+
branches: ['dev']
5+
pull_request:
6+
types:
7+
- opened
8+
9+
jobs:
10+
code-check:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: setup node.js environment
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: 16
18+
19+
- name: checkout code
20+
uses: actions/checkout@v2
21+
22+
- name: 'cache node_modules'
23+
uses: actions/cache@v2
24+
with:
25+
path: ~/.npm
26+
key: ${{ runner.os }}-node-v${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
27+
restore-keys: |
28+
${{ runner.os }}-node-v${{ matrix.node }}-
29+
30+
- name: install node.js dependencies
31+
run: |
32+
npm install
33+
34+
- name: run unit tests and coverage scan
35+
env:
36+
PUBLIC_KEY: ${{ secrets.PUBLIC_KEY }}
37+
SECRET_KEY: ${{ secrets.SECRET_KEY }}
38+
run: npm run coverage
39+
40+
- name: upload coverage report to codecov
41+
uses: codecov/codecov-action@v2
42+
43+
- name: push build status to slack
44+
uses: 8398a7/action-slack@v3
45+
with:
46+
status: ${{ job.status }}
47+
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took,pullRequest
48+
env:
49+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
50+
MATRIX_CONTEXT: ${{ toJson(matrix) }}
51+
if: always()

.github/workflows/publish.yml

Lines changed: 51 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,63 @@
1-
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
31

4-
name: Deploy AngularJS Package
2+
name: Publish changes to Angular package
53

64
on:
75
release:
86
types: [created]
97

108
jobs:
11-
build:
9+
check-readme-and-changelog:
1210
runs-on: ubuntu-latest
1311
steps:
14-
- uses: actions/checkout@v2
15-
- uses: actions/setup-node@v1
12+
- name: checkout code
13+
uses: actions/checkout@v2
14+
15+
- name: Check for changes in readme and changelog files
16+
run: |
17+
if ! git diff --quiet HEAD~ HEAD -- README.md CHANGELOG.md; then
18+
echo "README and/or CHANGELOG have been modified. Proceeding with deployment."
19+
else
20+
echo "README and/or CHANGELOG have not been modified. Terminating deployment."
21+
exit 1
22+
fi
23+
24+
- name: push build status to slack
25+
uses: 8398a7/action-slack@v3
26+
with:
27+
status: ${{ job.status }}
28+
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took,pullRequest
29+
env:
30+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
31+
if: always()
32+
33+
publish:
34+
needs: check-readme-and-changelog
35+
runs-on: ubuntu-latest
36+
steps:
37+
- name: checkout code
38+
uses: actions/checkout@v2
39+
40+
- name: setup node.js environment
41+
uses: actions/setup-node@v1
1642
with:
17-
node-version: 12
43+
node-version: 16
1844
registry-url: https://registry.npmjs.org/
19-
- run: npm i && npm run build
20-
- run: cd dist && npm publish
21-
env:
22-
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
45+
46+
- name: install node.js dependencies
47+
run: npm ci
48+
49+
- run: npm publish
50+
env:
51+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
52+
53+
- name: push build status to slack
54+
uses: 8398a7/action-slack@v3
55+
with:
56+
status: ${{ job.status }}
57+
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took,pullRequest
58+
env:
59+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
60+
MATRIX_CONTEXT: ${{ toJson(matrix) }}
61+
if: always()
62+
2363

.gitignore

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,42 @@
1-
# See http://help.github.com/ignore-files/ for more about ignoring files.
1+
# See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files.
22

3-
# compiled output
3+
# Compiled output
4+
/dist
45
/tmp
56
/out-tsc
7+
/bazel-out
68

7-
# dependencies
9+
# Node
810
/node_modules
9-
/dist
11+
npm-debug.log
12+
yarn-error.log
1013

1114
# IDEs and editors
12-
/.idea
15+
.idea/
1316
.project
1417
.classpath
1518
.c9/
1619
*.launch
1720
.settings/
1821
*.sublime-workspace
1922

20-
# IDE - VSCode
23+
# Visual Studio Code
2124
.vscode/*
2225
!.vscode/settings.json
2326
!.vscode/tasks.json
2427
!.vscode/launch.json
2528
!.vscode/extensions.json
29+
.history/*
2630

27-
# misc
28-
/.sass-cache
31+
# Miscellaneous
32+
/.angular/cache
33+
.sass-cache/
2934
/connect.lock
3035
/coverage
3136
/libpeerconnection.log
32-
npm-debug.log
3337
testem.log
3438
/typings
35-
/.history
36-
37-
# e2e
38-
/e2e/*.js
39-
/e2e/*.map
4039

41-
# System Files
40+
# System files
4241
.DS_Store
4342
Thumbs.db
44-
45-
todo.md
46-
developmentInfos.md
47-
Archive.zip
48-
/.lh
49-
/.vscode

.nycrc

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)