-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (43 loc) · 1.04 KB
/
cli-pr-checks.yml
File metadata and controls
54 lines (43 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: CLI PR checks
on:
pull_request:
paths: ['cli/**']
concurrency:
group: ${{ github.ref }}-cli-pr-checks
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: 'cli/npm-shrinkwrap.json'
- name: Install dependencies
working-directory: cli
run: npm ci
- name: Build
working-directory: cli
run: npm run build
- name: Check format
working-directory: cli
run: npm run check-format
- name: Lint
working-directory: cli
run: npm run lint
- 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:
dry-run: true