Merge branch 'main' into next
# Conflicts: # .eslintrc.cjs # .github/workflows/prod-test.yml # .github/workflows/validate-vendors.yml # scripts/build/bundler.mjs # scripts/vendors/bundle-vendors.mjs # scripts/vendors/utils.mjs # scripts/vendors/vendor-meta.json # scripts/vendors/vendors.mjs # src/cli/logger.js # src/cli/options/get-options-for-file.js # src/cli/options/parse-cli-arguments.js # src/common/util.js # src/language-html/utils/html-tag-names.js # tests/integration/__tests__/bundle.js # tests/integration/__tests__/loglevel.js # tests/integration/run-prettier.js # vendors/string-width.js
This commit is contained in:
commit
6016404f59
44 files changed
+689
-508
No files matched your search
@@ -0,0 +1,26 @@
|
||||
name: Check Sizes
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
check-sizes:
|
||||
name: Check Sizes
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
cache: "yarn"
|
||||
|
||||
# This step calls `git reset`
|
||||
# It should be the last step
|
||||
- name: Check Sizes
|
||||
uses: preactjs/compressed-size-action@2.5.0
|
||||
with:
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
pattern: "./dist/**/*"
|
||||
compression: none
|
||||
@@ -21,7 +21,7 @@ jobs:
|
||||
- "ubuntu-latest"
|
||||
node:
|
||||
# Run tests on minimal version we support
|
||||
- "12"
|
||||
- "14"
|
||||
NPM_CLIENT:
|
||||
- "yarn"
|
||||
- "npm"
|
||||
|
||||
@@ -19,21 +19,20 @@ jobs:
|
||||
- "macos-latest"
|
||||
- "windows-latest"
|
||||
node:
|
||||
- "16.10.0"
|
||||
- "16"
|
||||
- "14"
|
||||
- "12"
|
||||
include:
|
||||
# only enable coverage on the fastest job
|
||||
- os: "ubuntu-latest"
|
||||
node: "16.10.0"
|
||||
node: "16"
|
||||
ENABLE_CODE_COVERAGE: true
|
||||
FULL_TEST: true
|
||||
CHECK_TEST_PARSERS: true
|
||||
exclude:
|
||||
- os: "macos-latest"
|
||||
node: "14"
|
||||
- os: "windows-latest"
|
||||
node: "14"
|
||||
# exclude:
|
||||
# - os: "macos-latest"
|
||||
# node: "14"
|
||||
# - os: "windows-latest"
|
||||
# node: "14"
|
||||
env:
|
||||
ENABLE_CODE_COVERAGE: ${{ matrix.ENABLE_CODE_COVERAGE }}
|
||||
FULL_TEST: ${{ matrix.FULL_TEST }}
|
||||
@@ -43,9 +42,6 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
# `codecov/codecov-action` require depth to be at least `2`, see #10219
|
||||
with:
|
||||
fetch-depth: 2
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v3
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
name: Prevent File change
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- "website/data/users.yml"
|
||||
|
||||
jobs:
|
||||
prevent-add-users:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Prevent file change
|
||||
uses: xalvarez/prevent-file-change-action@v1
|
||||
with:
|
||||
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
||||
pattern: website/data/users.yml
|
||||
@@ -33,16 +33,6 @@ jobs:
|
||||
name: dist
|
||||
path: dist
|
||||
|
||||
# This step calls `git reset`
|
||||
# It should be the last step
|
||||
- name: Check Sizes
|
||||
if: ${{ github.event_name == 'pull_request' && startsWith(github.head_ref, 'dependabot/npm_and_yarn/') }}
|
||||
uses: preactjs/compressed-size-action@2.5.0
|
||||
with:
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
pattern: "./dist/**/*"
|
||||
compression: none
|
||||
|
||||
lint:
|
||||
name: Lint
|
||||
runs-on: ubuntu-latest
|
||||
@@ -78,12 +68,12 @@ jobs:
|
||||
- "macos-latest"
|
||||
- "windows-latest"
|
||||
node:
|
||||
- "16.10.0"
|
||||
- "16"
|
||||
- "14"
|
||||
- "12"
|
||||
include:
|
||||
- os: "ubuntu-latest"
|
||||
node: "16.10.0"
|
||||
node: "16"
|
||||
FULL_TEST: true
|
||||
exclude:
|
||||
- os: "macos-latest"
|
||||
@@ -105,6 +95,10 @@ jobs:
|
||||
node-version: ${{ matrix.node }}
|
||||
cache: "yarn"
|
||||
|
||||
- name: Config `ignore-engines=true` (Node.js < 14)
|
||||
if: ${{ matrix.node == '12' }}
|
||||
run: yarn config set ignore-engines true
|
||||
|
||||
- name: Install Dependencies
|
||||
run: yarn install --frozen-lockfile
|
||||
|
||||
|
||||
@@ -25,7 +25,6 @@ jobs:
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "14"
|
||||
cache: "yarn"
|
||||
|
||||
- name: Install Dependencies
|
||||
|
||||
Reference in new issue
Block a user