Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
38 lines
652 B
YAML
38 lines
652 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@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 CLI
|
|
run: npm run build
|
|
|
|
- name: Run tests
|
|
run: npm test
|
|
env:
|
|
NPM_CONFIG_YES: true
|
|
CI: true
|