Issue 73 - Switching from console log to winston logger #28
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: Run CLI unit tests and lint | |
on: | |
pull_request: | |
branches: | |
- "main" | |
paths: | |
- "cli/**" | |
push: | |
branches: | |
- "main" | |
paths: | |
- "cli/**" | |
defaults: | |
run: | |
working-directory: ./cli | |
jobs: | |
cli-tests: | |
name: Run unit tests and lint | |
runs-on: ubuntu-latest | |
steps: | |
# Check out the repository | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: v20 | |
- run: npm ci | |
- run: npm run test | |
- run: npm run lint |