33 lines
594 B
YAML
33 lines
594 B
YAML
name: CLI Tests
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- "cli/**"
|
|
pull_request:
|
|
paths:
|
|
- "cli/**"
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: ./cli
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: package.json
|
|
cache: npm
|
|
|
|
# Working around https://github.com/npm/cli/issues/4828
|
|
- run: npm install --no-package-lock
|
|
|
|
- name: Build CLI
|
|
run: npm run build
|
|
|
|
- name: Run tests
|
|
run: npm test
|