fix(app-tools): failed to scan public dir when using Rspack #7493
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: Type Check | |
on: | |
pull_request: | |
branches: [main] | |
merge_group: | |
workflow_dispatch: | |
jobs: | |
type-check: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node-version: [16.x] | |
os: [ubuntu-latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 25 | |
- name: Install Pnpm | |
run: corepack enable | |
- name: Check docs only change | |
run: echo ::set-output name=DOCS_CHANGE::$(node ./scripts/skipDocsChange.js echo 'not-docs-only-change') | |
id: docs-change | |
- run: echo ${{steps.docs-change.outputs.DOCS_CHANGE}} | |
- name: Setup Node.js ${{ matrix.node-version }} | |
if: ${{steps.docs-change.outputs.DOCS_CHANGE != 'docs only change'}} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- name: Turbo Cache | |
id: turbo-cache | |
if: ${{steps.docs-change.outputs.DOCS_CHANGE != 'docs only change'}} | |
uses: actions/cache@v3 | |
with: | |
path: .turbo | |
key: turbo-${{ github.base_ref }}-${{ github.ref_name }}-${{ github.sha }} | |
restore-keys: | | |
turbo-${{ github.base_ref }}-${{ github.ref_name }}- | |
turbo-${{ github.base_ref }}- | |
turbo- | |
- name: Install Dependencies | |
if: ${{steps.docs-change.outputs.DOCS_CHANGE != 'docs only change'}} | |
run: pnpm install --ignore-scripts --frozen-lockfile | |
- name: Type Check | |
if: ${{steps.docs-change.outputs.DOCS_CHANGE != 'docs only change'}} | |
run: pnpm run prepare |