fix: 馃悰 .unlink() should not delete empty directories
#1200
This file contains hidden or 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: Checks | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - next | |
| pull_request: | |
| branches: | |
| - master | |
| - next | |
| permissions: | |
| contents: read # for checkout | |
| jobs: | |
| test: | |
| name: Test on Node.js v${{ matrix.node-version }} on ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macOS-latest] | |
| node-version: [22.x, 24.x, 26.x] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| # Corepack is no longer bundled with Node.js (removed in v25), so install | |
| # it into the setup-node tool dir | |
| - name: Enable corepack | |
| shell: bash | |
| run: | | |
| npm install -g --force corepack | |
| corepack enable --install-directory "$(dirname "$(command -v node)")" | |
| yarn --version | |
| - name: install | |
| run: yarn | |
| - name: run build | |
| run: yarn build | |
| - name: run typecheck | |
| run: yarn typecheck | |
| - name: run Prettier | |
| if: runner.os != 'Windows' | |
| run: yarn prettier:check | |
| - name: run tests | |
| run: yarn test | |
| env: | |
| CI: true |