Initial attempt at some basic end to end tests for the CLI. #586
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CLI | |
on: | |
pull_request: | |
branches: | |
- "main" | |
paths: | |
- "cli/**" | |
- "shared/**" | |
push: | |
branches: | |
- "main" | |
paths: | |
- "cli/**" | |
- "shared/**" | |
jobs: | |
cli: | |
name: Build, Test, and Lint CLI Module | |
runs-on: ubuntu-latest | |
steps: | |
# Ensure full PR checkout | |
- name: Checkout PR Branch | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: v20 | |
- name: Install workspace | |
run: npm ci | |
- name: Build workspace | |
run: npm run build | |
- name: Run tests for CLI | |
run: npm run test --workspace=cli |