fix(pluginutils): optimize createFilter
and normalizePath
#1755
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: Validate Monorepo | |
on: | |
pull_request: | |
types: | |
- edited | |
- opened | |
- synchronize | |
push: | |
branches: | |
- '*' | |
- '!master' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: ['20', '18'] | |
name: Node v${{ matrix.node }} | |
steps: | |
- name: Checkout Commit | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: Update Master | |
run: git pull --force --no-tags origin master:master | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Enable Corepack | |
id: pnpm-setup | |
run: | | |
corepack enable | |
corepack prepare pnpm@latest --activate | |
pnpm config set script-shell "/usr/bin/bash" | |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)" | |
- name: pnpm Cache | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.pnpm-setup.outputs.pnpm_cache_dir }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: ESLint Cache | |
uses: actions/cache@v3 | |
with: | |
path: ./.eslintcache | |
key: ${{ runner.os }}-eslintcache-${{ hashFiles('./eslintcache') }} | |
restore-keys: | | |
${{ runner.os }}-eslintcache- | |
- name: Sanity Check | |
run: | | |
echo git `git version`; | |
echo branch `git branch --show-current`; | |
echo node `node -v`; | |
echo pnpm `pnpm -v` | |
echo `moon --version` | |
- name: pnpm install | |
run: pnpm install --frozen-lockfile | |
- name: Prettier | |
run: pnpm run prettier:check | |
# pnpm audit isn't as robust as it needs to be atm | |
# - name: Audit Dependencies | |
# run: pnpm security | |
- name: Build Packages | |
run: pnpm --recursive build | |
- name: Lint Monorepo | |
run: pnpm lint:js | |
- name: Run Tests | |
run: pnpm --filter "...[origin/master]" ci:coverage |