diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..b2ee12b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,16 @@ +name: Node.js CI + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version: '20.x' + - run: npm ci + - run: npm run lint + - run: npm test + - run: npm run tsc diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ef25ed7..0000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -language: node_js -sudo: false -node_js: - - "13.9.0" -install: - - npm install -script: - - npm run lint - - npm test - - npm run tsc diff --git a/src/command-line-parser/command-line.interface.ts b/src/command-line-parser/command-line.interface.ts index 844e355..6cf7713 100644 --- a/src/command-line-parser/command-line.interface.ts +++ b/src/command-line-parser/command-line.interface.ts @@ -4,7 +4,7 @@ export interface ArgumentOptions { alias: string; } -export type CommandLineDefinitions = Array>; +export type CommandLineDefinitions = Partial[]; export interface Argv { help: boolean;