Skip to content

Commit

Permalink
1. add test
Browse files Browse the repository at this point in the history
2. optimize parameters
  • Loading branch information
xudongdev committed Mar 8, 2020
1 parent 18cd80b commit 0cc8d96
Show file tree
Hide file tree
Showing 8 changed files with 9,751 additions and 1,010 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Node.js CI

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

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- run: npm test
19 changes: 19 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Node.js Package

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- run: npm test
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
Binary file added GeoIP2-City-Test.mmdb
Binary file not shown.
Loading

0 comments on commit 0cc8d96

Please sign in to comment.