Skip to content

Commit

Permalink
Merge pull request #4 from tingzhouu/feature/ci-for-test
Browse files Browse the repository at this point in the history
add workflow
  • Loading branch information
tingzhouu authored Apr 30, 2023
2 parents e6a6e82 + 5792259 commit 077086b
Show file tree
Hide file tree
Showing 5 changed files with 2,957 additions and 84 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Node.js CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x, 18.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
lib

node_modules
node_modules

coverage

.nyc_output
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# SG PayNow Code

<p align="center">
<a href="https://github.com/tingzhouu/sg-paynow-code/blob/LICENSE">
<img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="sg-paynow-code is released under the MIT license." />
</a>
<a href="https://github.com/tingzhouu/sg-paynow-code/actions/workflows/ci-test.yaml">
<img src="https://github.com/tingzhouu/sg-paynow-code/actions/workflows/ci-test.yaml/badge.svg" alt="Current CI build status." />
</a>
<a href="https://www.npmjs.com/package/sg-paynow-code">
<img src="https://www.npmjs.com/package/sg-paynow-code" alt="Current npm package version." />
</a>
<a href="https://github.com/tingzhouu/sg-paynow-code">
<img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs welcome!" />
</a>
</p>

SG PayNow Code is a JavaScript library to generate a PayNow Code. You can create a QR Code for people to pay you!

## Getting Started
Expand Down
Loading

0 comments on commit 077086b

Please sign in to comment.