forked from derrickko/clify
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (27 loc) · 742 Bytes
/
Copy pathtest.yml
File metadata and controls
27 lines (27 loc) · 742 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
name: test
on:
push:
pull_request:
jobs:
clify:
runs-on: ubuntu-latest
strategy:
matrix:
node: ["20", "22"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: clify unit tests
run: npm test
- name: validate exemplar
run: node bin/clify.mjs validate examples/exemplar-cli
- name: exemplar tests
working-directory: examples/exemplar-cli
run: npm test
- name: scaffold-init smoke (full round-trip)
run: |
tmp=$(mktemp -d)
node bin/clify.mjs scaffold-init demo-api --target "$tmp"
node bin/clify.mjs validate "$tmp/demo-api-cli"