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
13 changes: 8 additions & 5 deletions .github/workflows/cli-pr-checks.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
name: CLI PR checks
description: check the CLI PR

on:
pull_request:
paths: ['cli/**']
Expand All @@ -10,7 +8,7 @@ concurrency:
cancel-in-progress: true

jobs:
check-code:
test:
runs-on: ubuntu-latest

steps:
Expand All @@ -19,7 +17,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'
cache: 'npm'
cache-dependency-path: 'cli/npm-shrinkwrap.json'

Expand All @@ -39,12 +37,17 @@ jobs:
working-directory: cli
run: npm run lint

- name: Test no crash
- name: Install iapp cli
working-directory: cli
run: |
npm i -g .
iapp -h

- name: Test
working-directory: cli
run: |
npm run test

npm-dry-run:
uses: ./.github/workflows/reusable-cli-npm.yml
with:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ api/.env
api/sig
.tags

cli/dist
cli/dist
cli/test/out
205 changes: 195 additions & 10 deletions cli/npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"build:watch": "npm run build -- --watch",
"check-format": "prettier --check .",
"format": "prettier --write .",
"lint": "eslint src"
"lint": "eslint src",
"test:pre": "echo 'testing' && which iapp || (echo 'iapp CLI is not installed' && exit 1)",
"test": "npm run test:pre && node --test test/**/*.test.ts"
},
"author": "iExec",
"license": "Apache-2.0",
Expand Down Expand Up @@ -60,9 +62,11 @@
"@types/debug": "^4.1.12",
"@types/dockerode": "^3.3.37",
"@types/figlet": "^1.7.0",
"@types/node": "^25.0.3",
"@types/prompts": "^2.4.9",
"@types/ws": "^8.18.1",
"@types/yargs": "^17.0.33",
"cli-testing-library": "^3.0.1",
"eslint": "^9.24.0",
"eslint-plugin-unicorn": "^58.0.0",
"globals": "^16.0.0",
Expand Down
Loading