chore(cli): add linter #4
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: "16.20.0" | |
- | |
name: "Install yarn" | |
run: "npm install -g yarn" | |
- | |
name: "Install dependencies" | |
run: "yarn 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: "16.20.0" | |
- | |
name: "Cache" | |
uses: "actions/cache@main" | |
with: | |
path: "./*" | |
key: "${{ github.sha }}-cache" | |
- | |
name: "Build core package" | |
run: "yarn core:build" | |
- | |
name: "Run tests" | |
run: "yarn cli:test-coverage" |