test(cli): update tests #12
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: "ONLY TEST" | |
on: | |
workflow_dispatch: {} | |
push: | |
branches: | |
- "main" | |
paths-ignore: | |
- "**/*.md" | |
concurrency: | |
group: "${{ github.workflow }}-${{ github.ref }}" | |
cancel-in-progress: false | |
jobs: | |
install-dependencies: | |
name: "install dependencies" | |
runs-on: "ubuntu-latest" | |
steps: | |
- | |
name: "Checkout under $GITHUB_WORKSPACE" | |
uses: "actions/checkout@master" | |
with: | |
ref: "main" | |
- | |
name: "Set up NodeJS" | |
uses: "actions/setup-node@master" | |
with: | |
node-version: "18" | |
- | |
name: "Install dependencies" | |
run: "npm install" | |
- | |
name: "Cache" | |
uses: "actions/cache@main" | |
with: | |
path: "./*" | |
key: "${{ github.sha }}-cache" | |
test: | |
name: "test" | |
runs-on: "ubuntu-latest" | |
needs: "install-dependencies" | |
steps: | |
- | |
name: "Set up NodeJS" | |
uses: "actions/setup-node@master" | |
with: | |
node-version: "18" | |
- | |
name: "Cache" | |
uses: "actions/cache@main" | |
with: | |
path: "./*" | |
key: "${{ github.sha }}-cache" | |
- | |
name: "Build core package" | |
run: "npm run core:build" | |
- | |
name: "Run tests" | |
run: "npm run cli:test-coverage" |