-
Notifications
You must be signed in to change notification settings - Fork 1.3k
47 lines (39 loc) · 899 Bytes
/
cli_tests.yml
File metadata and controls
47 lines (39 loc) · 899 Bytes
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
name: CLI Tests
on:
push:
paths:
- "clients/cli/**"
pull_request:
paths:
- "clients/cli/**"
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./clients/cli
steps:
- uses: actions/checkout@v6
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version-file: package.json
cache: npm
- name: Install dependencies
run: |
cd ..
npm ci --ignore-scripts
- name: Build core package
working-directory: .
run: npm run build-core
- name: Build test package
working-directory: .
run: npm run build-test
- name: Build CLI
working-directory: .
run: npm run build-cli
- name: Run tests
run: npm test
env:
NPM_CONFIG_YES: true
CI: true