Merge pull request #147 from rocketstack-matt/badges #1
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: Build CLI | |
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 |