Skip to content

Commit

Permalink
Update deps (#87)
Browse files Browse the repository at this point in the history
* Update typescript, add toolversions

* Update inqurier, change test to node 16.x

* Change to inquirer 6

* Update mocha, sinon, typescript

* change inquirer import

* Change CI steps

* Fix test linting, update globby

* Update nock, nyc
  • Loading branch information
eablack authored Aug 20, 2024
1 parent 268b5b5 commit e768de0
Show file tree
Hide file tree
Showing 7 changed files with 1,460 additions and 1,174 deletions.
33 changes: 17 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,21 @@ on:

jobs:
test:
runs-on: ubuntu-latest

runs-on: ${{ matrix.os }}
name: Node Tests

strategy:
matrix:
node-version: [ 16.x ]
os: [ ubuntu-24.04, pub-hk-ubuntu-24.04-arm-small ]

steps:
- uses: actions/checkout@v3
- name: Use Nodejs 14
uses: actions/setup-node@v3
with:
node-version: 14.x
- name: Installing Heroku CLI
run: curl https://cli-assets.heroku.com/install.sh | sh
- name: Setting up plugin and manifest
run: yarn global add oclif && heroku plugins:link
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Testing
run: yarn test
- name: Run nyc code coverage report
run: ./node_modules/.bin/nyc report --reporter text-lcov > coverage.lcov
- 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 -g yarn
- run: yarn --frozen-lockfile --ignore-engines
- run: yarn test
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs 16.20.2
36 changes: 23 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"cli-ux": "^4.7.3",
"diff": "^3.5.0",
"fs-extra": "^7.0.0",
"inquirer": "^6.0.0",
"inquirer": "^6.5.2",
"jsdiff": "^1.1.1",
"lodash": "^4.17.11",
"randomstring": "^1.1.5",
Expand All @@ -30,28 +30,27 @@
"@types/chai": "^4",
"@types/diff": "^3.5.1",
"@types/execa": "^0.9.0",
"@types/glob": "^5.0.35",
"@types/inquirer": "^0.0.41",
"@types/mocha": "^5",
"@types/glob": "^7.2.0",
"@types/inquirer": "^6.0.2",
"@types/mocha": "^10.0.7",
"@types/nock": "^9.3.0",
"@types/node": "^10",
"@types/node": "^10.9.4",
"@types/randomstring": "^1.1.6",
"@types/supports-color": "^5.3.0",
"@types/write-json-file": "^2.2.1",
"chai": "^4",
"globby": "^8",
"mocha": "^5",
"nock": "^10.0.0",
"nyc": "^11",
"sinon": "^6.3.2",
"stub": "^0.3.2",
"globby": "^10",
"mocha": "^10.7.3",
"nock": "^13.5.4",
"nyc": "^15.1.0",
"sinon": "^16.1.3",
"ts-node": "^7.0.1",
"tslint": "^5",
"tsutils": "2.27.2",
"typescript": "^3.0.3"
"typescript": "4.9.5"
},
"engines": {
"node": ">=8.0.0"
"node": "16.x"
},
"files": [
"/lib",
Expand All @@ -63,6 +62,17 @@
"oclif-plugin"
],
"license": "MIT",
"mocha": {
"require": [
"test/helpers/init.js",
"ts-node/register",
"source-map-support/register"
],
"watch-extensions": "ts",
"recursive": true,
"reporter": "spec",
"timeout": 5000
},
"oclif": {
"commands": "./lib/commands",
"bin": "heroku",
Expand Down
4 changes: 2 additions & 2 deletions src/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ interface ManifestAPIInterface {

export abstract class Manifest {
manifest?: ManifestInterface
abstract async _get(): Promise<ManifestInterface>
abstract async _set(manifest: ManifestInterface): Promise<ManifestInterface>
abstract _get(): Promise<ManifestInterface>
abstract _set(manifest: ManifestInterface): Promise<ManifestInterface>

async get(): Promise<ManifestInterface> {
if (this.manifest) {
Expand Down
7 changes: 0 additions & 7 deletions test/mocha.opts

This file was deleted.

1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"rootDirs": [
"./src"
],
"skipLibCheck": true,
"strict": true,
"target": "es2017",
"typeRoots": [
Expand Down
Loading

0 comments on commit e768de0

Please sign in to comment.