feat: report dependency missing for class and factory (#18) #13
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: 🧪 CI Test | |
on: | |
push: | |
branches: [main, dev] | |
pull_request: | |
branches: [main, dev] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
run_install: false | |
- name: Get pnpm store directory | |
shell: bash | |
run: | | |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | |
- name: Setup pnpm cache | |
uses: actions/cache@v3 | |
with: | |
path: ${{ env.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: Setup ESLint cache | |
uses: actions/cache@v3 | |
with: | |
path: .eslintcache | |
key: | | |
${{ runner.os }}-eslint-${{ hashFiles('.eslintrc.cjs') }} | |
restore-keys: | | |
${{ runner.os }}-eslint- | |
- name: Install dependencies | |
run: pnpm install | |
- name: 🩺 Run Test | |
run: pnpm run test | |
- name: 🌡️ Run ESLint | |
run: pnpm run lint | |
- name: 🧼 Type checking | |
run: pnpm typeCheck |