Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
25 changes: 25 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
environment:
matrix:
- nodejs_version: "12"
- nodejs_version: "14"
- nodejs_version: "16"
- nodejs_version: "18"
branches:
only:
- main
init:
- cmd: git config --global core.autocrlf true
install:
# Get the latest stable version of Node.js or io.js
- ps: Install-Product node $env:nodejs_version
# install modules
- npm install -f
test_script:
- node --version
- npm --version
- npm run lint
on_finish:
- ps: |
$env:PATH = 'C:\msys64\usr\bin;' + $env:PATH
# Don't actually build.
build: off
32 changes: 16 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
# 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: tests
name: CI

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

jobs:
build:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [macos-latest,ubuntu-latest]
operating-system: [macos-latest, ubuntu-latest]
node-version: [12, 13, 14, 16, 18]
name: Node.js ${{ matrix.node-version }} Test on ${{ matrix.operating-system }}

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 install
- run: npm run test-cov
- uses: codecov/codecov-action@v3
with:
name: codecov-node-koapp # optional
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run lint
# - uses: codecov/codecov-action@v3
# with:
# name: codecov-node-koapp # optional
# fail_ci_if_error: true # optional (default = false)
# verbose: true # optional (default = false)
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @axiosleo/koapp

[![NPM version](https://img.shields.io/npm/v/@axiosleo/koapp.svg?style=flat-square)](https://npmjs.org/package/@axiosleo/koapp)
[![npm download](https://img.shields.io/npm/dm/@axiosleo/koapp.svg?style=flat-square)](https://npmjs.org/package/@axiosleo/koapp)
[![CI Build Status](https://github.com/AxiosLeo/node-koapp/actions/workflows/ci.yml/badge.svg)](https://github.com/AxiosLeo/node-koapp/actions/workflows/ci.yml)
[![](https://codecov.io/gh/AxiosLeo/node-koapp/branch/master/graph/badge.svg)](https://codecov.io/gh/AxiosLeo/node-koapp)
[![License](https://img.shields.io/github/license/AxiosLeo/node-koapp?color=%234bc524)](LICENSE)
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FAxiosLeo%2Fnode-koapp.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2FAxiosLeo%2Fnode-koapp/refs/branch/master)

> Design for quickly developing Web applications using Node.js
>
> Based on [koa](https://koajs.com/)
Expand Down Expand Up @@ -37,3 +44,5 @@ app.start();
## License

This project is open-sourced software licensed under the [MIT](LICENSE).

[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FAxiosLeo%2Fnode-koapp.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2FAxiosLeo%2Fnode-koapp/refs/branch/master/)
18 changes: 10 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,18 @@
"validatorjs": "^3.22.1"
},
"devDependencies": {
"@types/node": "^15.12.1",
"chai": "^4.2.0",
"@types/node": "^18.14.2",
"chai": "^4.3.7",
"chai-as-promised": "^7.1.1",
"eslint": "^7.0",
"eslint": "^8.35",
"expect.js": "^0.3.1",
"has-flag": "^4.0.0",
"mm": "^3.2.0",
"mocha": "^9.1.3",
"has-flag": "^5.0.1",
"mm": "^3.2.1",
"mocha": "^10.2.0",
"mocha-sinon": "^2.1.2",
"sinon": "^9.0.2",
"typescript": "^4.3.2"
"nyc": "^15.1.0",
"pre-commit": "^1.2.2",
"sinon": "^15.0.1",
"typescript": "^4.9.5"
}
}