-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 916 Bytes
/
Copy pathcli-test.yml
File metadata and controls
39 lines (36 loc) · 916 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
name: CLI test
on:
pull_request:
paths:
- "bin/**"
- "src/**"
- "test/**"
- "tests/**"
- "package.json"
- ".github/workflows/cli-test.yml"
push:
branches: [main]
paths:
- "bin/**"
- "src/**"
- "test/**"
- "tests/**"
- "package.json"
- ".github/workflows/cli-test.yml"
workflow_dispatch:
permissions:
contents: read
jobs:
cli:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: "20"
- run: npm test
- run: node ./bin/beforecode.js help
- run: node ./bin/beforecode.js list
- run: node ./bin/beforecode.js start --idea "Service CRM for small teams" --dry-run
- run: node ./bin/beforecode.js init --type saas --docs tmp-docs
- run: node ./bin/beforecode.js check --type saas --docs tmp-docs