diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 00000000..18714f3a --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,41 @@ +name: ci +on: + push: + branches: + - master + pull_request: +env: + CI: true +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + node: [10.x, 12.x, 14.x] + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node }} + - run: node --version + - run: npm install + - run: npm test + windows: + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: '12.x' + - run: npm install + - run: npm test + coverage: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: '14.x' + - run: npm install + - run: npm test + - run: npm run coverage diff --git a/.gitignore b/.gitignore index 62adae57..7f616c8a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .DS_Store node_modules .nyc_output +package-lock.json diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 00000000..b009dfb9 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +lts/* diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 2465405e..00000000 --- a/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -language: node_js -sudo: false -node_js: - - "4" - - "6" - - "node" -after_success: npm run coverage diff --git a/README.md b/README.md index 826474f2..36cd3495 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,12 @@ What locale is currently being used? Update the current locale with the key value pairs in `obj`. +## Supported Node.js Versions + +Libraries in this ecosystem make a best effort to track +[Node.js' release schedule](https://nodejs.org/en/about/releases/). Here's [a +post on why we think this is important](https://medium.com/the-node-js-collection/maintainers-should-consider-following-node-js-release-schedule-ab08ed4de71a). + ## License ISC diff --git a/package.json b/package.json index 636cfddf..e64aca3a 100644 --- a/package.json +++ b/package.json @@ -2,31 +2,31 @@ "name": "y18n", "version": "4.0.0", "description": "the bare-bones internationalization library used by yargs", - "main": "index.js", - "scripts": { - "pretest": "standard", - "test": "nyc mocha", - "coverage": "nyc report --reporter=text-lcov | coveralls", - "release": "standard-version" + "keywords": [ + "i18n", + "internationalization", + "yargs" + ], + "homepage": "https://github.com/yargs/y18n", + "bugs": { + "url": "https://github.com/yargs/y18n/issues" }, "repository": { "type": "git", "url": "git@github.com:yargs/y18n.git" }, + "license": "ISC", + "author": "Ben Coe ", + "main": "index.js", "files": [ "index.js" ], - "keywords": [ - "i18n", - "internationalization", - "yargs" - ], - "author": "Ben Coe ", - "license": "ISC", - "bugs": { - "url": "https://github.com/yargs/y18n/issues" + "scripts": { + "coverage": "nyc report --reporter=text-lcov | coveralls", + "release": "standard-version", + "pretest": "standard", + "test": "nyc mocha" }, - "homepage": "https://github.com/yargs/y18n", "devDependencies": { "chai": "^4.0.1", "coveralls": "^3.0.0", @@ -35,5 +35,8 @@ "rimraf": "^2.5.0", "standard": "^10.0.0-beta.0", "standard-version": "^5.0.0" + }, + "engines": { + "node": ">=10" } }