Skip to content

Commit 628132a

Browse files
ci: run CLI tests in CI
1 parent 913fbc5 commit 628132a

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/cli-pr-checks.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
name: CLI PR checks
2-
description: check the CLI PR
3-
42
on:
53
pull_request:
64
paths: ['cli/**']
@@ -10,7 +8,7 @@ concurrency:
108
cancel-in-progress: true
119

1210
jobs:
13-
check-code:
11+
test:
1412
runs-on: ubuntu-latest
1513

1614
steps:
@@ -19,7 +17,7 @@ jobs:
1917
- name: Setup Node.js
2018
uses: actions/setup-node@v4
2119
with:
22-
node-version: '20'
20+
node-version: '22'
2321
cache: 'npm'
2422
cache-dependency-path: 'cli/npm-shrinkwrap.json'
2523

@@ -39,12 +37,17 @@ jobs:
3937
working-directory: cli
4038
run: npm run lint
4139

42-
- name: Test no crash
40+
- name: Install iapp cli
4341
working-directory: cli
4442
run: |
4543
npm i -g .
4644
iapp -h
4745
46+
- name: Test
47+
working-directory: cli
48+
run: |
49+
npm run test
50+
4851
npm-dry-run:
4952
uses: ./.github/workflows/reusable-cli-npm.yml
5053
with:

0 commit comments

Comments
 (0)