Merge pull request #616 from Thels/cli-integration-tests #598
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 |