mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
chore(dprint): format yaml files (#5598)
This commit is contained in:
parent
0571a37022
commit
2386d7fca2
14 changed files with 144 additions and 142 deletions
16
.github/actions/pnpm/action.yml
vendored
16
.github/actions/pnpm/action.yml
vendored
|
|
@ -3,13 +3,13 @@ name: pnpm
|
|||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- uses: pnpm/action-setup@v4.0.0
|
||||
- uses: pnpm/action-setup@v4.0.0
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version-file: .node-version
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
cache: pnpm
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version-file: .node-version
|
||||
registry-url: "https://registry.npmjs.org"
|
||||
cache: pnpm
|
||||
|
||||
- run: pnpm install --frozen-lockfile
|
||||
shell: bash
|
||||
- run: pnpm install --frozen-lockfile
|
||||
shell: bash
|
||||
|
|
|
|||
52
.github/labeler.yml
vendored
52
.github/labeler.yml
vendored
|
|
@ -1,51 +1,51 @@
|
|||
A-ast:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ['crates/oxc_ast/**']
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ["crates/oxc_ast/**"]
|
||||
|
||||
A-ast-tools:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ['tasks/ast_tools/**']
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ["tasks/ast_tools/**"]
|
||||
|
||||
A-cfg:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ['crates/oxc_cfg/**']
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ["crates/oxc_cfg/**"]
|
||||
|
||||
A-cli:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ['apps/oxlint/**']
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ["apps/oxlint/**"]
|
||||
|
||||
A-prettier:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ['crates/oxc_prettier/**', 'tasks/prettier_conformance/**']
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ["crates/oxc_prettier/**", "tasks/prettier_conformance/**"]
|
||||
|
||||
A-transformer:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ['crates/oxc_transformer/**', 'tasks/transform_conformance/**']
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ["crates/oxc_transformer/**", "tasks/transform_conformance/**"]
|
||||
|
||||
A-linter:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ['crates/oxc_linter/**']
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ["crates/oxc_linter/**"]
|
||||
|
||||
A-minifier:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ['crates/oxc_minifier/**']
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ["crates/oxc_minifier/**"]
|
||||
|
||||
A-parser:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ['crates/oxc_parser/**']
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ["crates/oxc_parser/**"]
|
||||
|
||||
A-codegen:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ['crates/oxc_codegen/**']
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ["crates/oxc_codegen/**"]
|
||||
|
||||
A-semantic:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ['crates/oxc_semantic/**']
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ["crates/oxc_semantic/**"]
|
||||
|
||||
A-type-checking:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ['crates/oxc_type_synthesis/**']
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ["crates/oxc_type_synthesis/**"]
|
||||
|
||||
A-isolated-declarations:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ['crates/oxc_isolated_declarations/**']
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: ["crates/oxc_isolated_declarations/**"]
|
||||
|
|
|
|||
6
.github/workflows/autofix.yml
vendored
6
.github/workflows/autofix.yml
vendored
|
|
@ -4,10 +4,8 @@ on:
|
|||
pull_request:
|
||||
types: [opened, synchronize]
|
||||
paths-ignore:
|
||||
- '**/*.md'
|
||||
- '**/*.yml'
|
||||
- '!.github/workflows/ci.yml'
|
||||
- '!.github/actions/clone-submodules/action.yml'
|
||||
- "!.github/workflows/ci.yml"
|
||||
- "!.github/actions/clone-submodules/action.yml"
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
|
||||
|
|
|
|||
146
.github/workflows/benchmark.yml
vendored
146
.github/workflows/benchmark.yml
vendored
|
|
@ -18,24 +18,24 @@ on:
|
|||
pull_request:
|
||||
types: [opened, synchronize]
|
||||
paths:
|
||||
- '**/*.rs'
|
||||
- 'napi/parser/**/*.js'
|
||||
- 'napi/parser/**/*.mjs'
|
||||
- 'Cargo.lock'
|
||||
- 'rust-toolchain.toml'
|
||||
- '.github/workflows/benchmark.yml'
|
||||
- 'tasks/benchmark/codspeed/*.mjs'
|
||||
- "**/*.rs"
|
||||
- "napi/parser/**/*.js"
|
||||
- "napi/parser/**/*.mjs"
|
||||
- "Cargo.lock"
|
||||
- "rust-toolchain.toml"
|
||||
- ".github/workflows/benchmark.yml"
|
||||
- "tasks/benchmark/codspeed/*.mjs"
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- '**/*.rs'
|
||||
- 'napi/parser/**/*.js'
|
||||
- 'napi/parser/**/*.mjs'
|
||||
- 'Cargo.lock'
|
||||
- 'rust-toolchain.toml'
|
||||
- '.github/workflows/benchmark.yml'
|
||||
- 'tasks/benchmark/codspeed/*.mjs'
|
||||
- "**/*.rs"
|
||||
- "napi/parser/**/*.js"
|
||||
- "napi/parser/**/*.mjs"
|
||||
- "Cargo.lock"
|
||||
- "rust-toolchain.toml"
|
||||
- ".github/workflows/benchmark.yml"
|
||||
- "tasks/benchmark/codspeed/*.mjs"
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
|
||||
|
|
@ -205,74 +205,74 @@ jobs:
|
|||
retention-days: 1
|
||||
|
||||
# benchmark-napi:
|
||||
# name: Benchmark NAPI parser
|
||||
# runs-on: ubuntu-latest
|
||||
# if: false
|
||||
# steps:
|
||||
# - name: Checkout Branch
|
||||
# uses: taiki-e/checkout-action@v1
|
||||
# name: Benchmark NAPI parser
|
||||
# runs-on: ubuntu-latest
|
||||
# if: false
|
||||
# steps:
|
||||
# - name: Checkout Branch
|
||||
# uses: taiki-e/checkout-action@v1
|
||||
|
||||
# - uses: Boshen/setup-rust@main
|
||||
# with:
|
||||
# shared-key: benchmark_napi
|
||||
# save-cache: ${{ github.ref_name == 'main' }}
|
||||
# - uses: Boshen/setup-rust@main
|
||||
# with:
|
||||
# shared-key: benchmark_napi
|
||||
# save-cache: ${{ github.ref_name == 'main' }}
|
||||
|
||||
# - name: Install codspeed
|
||||
# uses: taiki-e/install-action@v2
|
||||
# with:
|
||||
# tool: cargo-codspeed
|
||||
# - name: Install codspeed
|
||||
# uses: taiki-e/install-action@v2
|
||||
# with:
|
||||
# tool: cargo-codspeed
|
||||
|
||||
# - uses: ./.github/actions/pnpm
|
||||
# - uses: ./.github/actions/pnpm
|
||||
|
||||
# - name: Start bench results interceptor server
|
||||
# working-directory: ./tasks/benchmark/codspeed
|
||||
# env:
|
||||
# COMPONENT: 'parser_napi'
|
||||
# run: |
|
||||
# pnpm install
|
||||
# node capture.mjs &
|
||||
# - name: Start bench results interceptor server
|
||||
# working-directory: ./tasks/benchmark/codspeed
|
||||
# env:
|
||||
# COMPONENT: 'parser_napi'
|
||||
# run: |
|
||||
# pnpm install
|
||||
# node capture.mjs &
|
||||
|
||||
# # CodSpeed gets measurements completely off for NAPI if run in `CodSpeedHQ/action`,
|
||||
# # so instead run real benchmark without CodSpeed's instrumentation and save the results.
|
||||
# # Then "Run Rust benchmark" step below runs a loop of some simple Rust code the number
|
||||
# # of times required to take same amount of time as the real benchmark took.
|
||||
# # This is all a workaround for https://github.com/CodSpeedHQ/action/issues/96
|
||||
# - name: Build NAPI Benchmark
|
||||
# working-directory: ./napi/parser
|
||||
# run: |
|
||||
# corepack enable
|
||||
# pnpm install
|
||||
# pnpm build
|
||||
# # CodSpeed gets measurements completely off for NAPI if run in `CodSpeedHQ/action`,
|
||||
# # so instead run real benchmark without CodSpeed's instrumentation and save the results.
|
||||
# # Then "Run Rust benchmark" step below runs a loop of some simple Rust code the number
|
||||
# # of times required to take same amount of time as the real benchmark took.
|
||||
# # This is all a workaround for https://github.com/CodSpeedHQ/action/issues/96
|
||||
# - name: Build NAPI Benchmark
|
||||
# working-directory: ./napi/parser
|
||||
# run: |
|
||||
# corepack enable
|
||||
# pnpm install
|
||||
# pnpm build
|
||||
|
||||
# - name: Run NAPI Benchmark
|
||||
# working-directory: ./napi/parser
|
||||
# run: node parse.bench.mjs
|
||||
# - name: Run NAPI Benchmark
|
||||
# working-directory: ./napi/parser
|
||||
# run: node parse.bench.mjs
|
||||
|
||||
# - name: Build Rust benchmark
|
||||
# env:
|
||||
# RUSTFLAGS: "-C debuginfo=2 -C strip=none -g --cfg codspeed"
|
||||
# run: |
|
||||
# cargo build --release -p oxc_benchmark --bench parser_napi --no-default-features --features codspeed_napi
|
||||
# mkdir -p target/codspeed/oxc_benchmark/
|
||||
# mv target/release/deps/parser_napi-* target/codspeed/oxc_benchmark
|
||||
# rm -rf target/codspeed/oxc_benchmark/*.d
|
||||
# - name: Build Rust benchmark
|
||||
# env:
|
||||
# RUSTFLAGS: "-C debuginfo=2 -C strip=none -g --cfg codspeed"
|
||||
# run: |
|
||||
# cargo build --release -p oxc_benchmark --bench parser_napi --no-default-features --features codspeed_napi
|
||||
# mkdir -p target/codspeed/oxc_benchmark/
|
||||
# mv target/release/deps/parser_napi-* target/codspeed/oxc_benchmark
|
||||
# rm -rf target/codspeed/oxc_benchmark/*.d
|
||||
|
||||
# - name: Run Rust benchmark
|
||||
# uses: CodSpeedHQ/action@v2
|
||||
# timeout-minutes: 30
|
||||
# with:
|
||||
# run: cargo codspeed run
|
||||
# # Dummy token for tokenless runs, to suppress logging hash of metadata JSON (see `upload.mjs`)
|
||||
# token: ${{ secrets.CODSPEED_TOKEN || 'dummy' }}
|
||||
# upload-url: http://localhost:${{ env.INTERCEPT_PORT }}/upload
|
||||
# - name: Run Rust benchmark
|
||||
# uses: CodSpeedHQ/action@v2
|
||||
# timeout-minutes: 30
|
||||
# with:
|
||||
# run: cargo codspeed run
|
||||
# # Dummy token for tokenless runs, to suppress logging hash of metadata JSON (see `upload.mjs`)
|
||||
# token: ${{ secrets.CODSPEED_TOKEN || 'dummy' }}
|
||||
# upload-url: http://localhost:${{ env.INTERCEPT_PORT }}/upload
|
||||
|
||||
# - name: Upload bench data artefact
|
||||
# uses: actions/upload-artifact@v4
|
||||
# with:
|
||||
# name: 'parser_napi'
|
||||
# path: ${{ env.DATA_DIR }}
|
||||
# if-no-files-found: error
|
||||
# retention-days: 1
|
||||
# - name: Upload bench data artefact
|
||||
# uses: actions/upload-artifact@v4
|
||||
# with:
|
||||
# name: 'parser_napi'
|
||||
# path: ${{ env.DATA_DIR }}
|
||||
# if-no-files-found: error
|
||||
# retention-days: 1
|
||||
|
||||
# Upload combined benchmark results to CodSpeed
|
||||
upload:
|
||||
|
|
|
|||
18
.github/workflows/ci.yml
vendored
18
.github/workflows/ci.yml
vendored
|
|
@ -5,19 +5,19 @@ on:
|
|||
pull_request:
|
||||
types: [opened, synchronize]
|
||||
paths-ignore:
|
||||
- '**/*.md'
|
||||
- '**/*.yml'
|
||||
- '!.github/workflows/ci.yml'
|
||||
- '!.github/actions/clone-submodules/action.yml'
|
||||
- "**/*.md"
|
||||
- "**/*.yml"
|
||||
- "!.github/workflows/ci.yml"
|
||||
- "!.github/actions/clone-submodules/action.yml"
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- "renovate/**"
|
||||
paths-ignore:
|
||||
- '**/*.md'
|
||||
- '**/*.yml'
|
||||
- '!.github/workflows/ci.yml'
|
||||
- '!.github/actions/clone-submodules/action.yml'
|
||||
- "**/*.md"
|
||||
- "**/*.yml"
|
||||
- "!.github/workflows/ci.yml"
|
||||
- "!.github/actions/clone-submodules/action.yml"
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
|
||||
|
|
@ -235,7 +235,7 @@ jobs:
|
|||
- uses: dorny/paths-filter@v3
|
||||
id: filter
|
||||
with:
|
||||
filters: '.github/.generated_ast_watch_list.yml'
|
||||
filters: ".github/.generated_ast_watch_list.yml"
|
||||
|
||||
- uses: Boshen/setup-rust@main
|
||||
if: steps.filter.outputs.src == 'true'
|
||||
|
|
|
|||
4
.github/workflows/codecov.yml
vendored
4
.github/workflows/codecov.yml
vendored
|
|
@ -8,8 +8,8 @@ on:
|
|||
branches:
|
||||
- main
|
||||
paths:
|
||||
- '**.rs'
|
||||
- '.github/workflows/codecov.yml'
|
||||
- "**.rs"
|
||||
- ".github/workflows/codecov.yml"
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
|
|
|
|||
12
.github/workflows/link-check.yml
vendored
12
.github/workflows/link-check.yml
vendored
|
|
@ -6,15 +6,15 @@ on:
|
|||
branches:
|
||||
- main
|
||||
paths:
|
||||
- '**/*.md'
|
||||
- '**/*.html'
|
||||
- '!**/fixtures/**'
|
||||
- "**/*.md"
|
||||
- "**/*.html"
|
||||
- "!**/fixtures/**"
|
||||
pull_request:
|
||||
types: [opened, synchronize]
|
||||
paths:
|
||||
- '**/*.md'
|
||||
- '**/*.html'
|
||||
- '!**/fixtures/**'
|
||||
- "**/*.md"
|
||||
- "**/*.html"
|
||||
- "!**/fixtures/**"
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
|
||||
|
|
|
|||
4
.github/workflows/lint-rules.yml
vendored
4
.github/workflows/lint-rules.yml
vendored
|
|
@ -5,8 +5,8 @@ on:
|
|||
branches:
|
||||
- main
|
||||
paths:
|
||||
- 'crates/oxc_linter/src/rules.rs'
|
||||
- 'tasks/lint_rules/**'
|
||||
- "crates/oxc_linter/src/rules.rs"
|
||||
- "tasks/lint_rules/**"
|
||||
|
||||
jobs:
|
||||
lint_rules:
|
||||
|
|
|
|||
12
.github/workflows/miri.yml
vendored
12
.github/workflows/miri.yml
vendored
|
|
@ -5,16 +5,16 @@ on:
|
|||
pull_request:
|
||||
types: [opened, synchronize]
|
||||
paths:
|
||||
- 'crates/oxc_parser/**'
|
||||
- 'crates/oxc_allocator/**'
|
||||
- '.github/workflows/miri.yml'
|
||||
- "crates/oxc_parser/**"
|
||||
- "crates/oxc_allocator/**"
|
||||
- ".github/workflows/miri.yml"
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- 'crates/oxc_parser/**'
|
||||
- 'crates/oxc_allocator/**'
|
||||
- '.github/workflows/miri.yml'
|
||||
- "crates/oxc_parser/**"
|
||||
- "crates/oxc_allocator/**"
|
||||
- ".github/workflows/miri.yml"
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
|
||||
|
|
|
|||
2
.github/workflows/prepare_release_crates.yml
vendored
2
.github/workflows/prepare_release_crates.yml
vendored
|
|
@ -27,4 +27,4 @@ jobs:
|
|||
with:
|
||||
name: crates
|
||||
secrets:
|
||||
OXC_BOT_PAT : ${{ secrets.OXC_BOT_PAT }}
|
||||
OXC_BOT_PAT: ${{ secrets.OXC_BOT_PAT }}
|
||||
|
|
|
|||
2
.github/workflows/prepare_release_oxlint.yml
vendored
2
.github/workflows/prepare_release_oxlint.yml
vendored
|
|
@ -22,7 +22,7 @@ jobs:
|
|||
with:
|
||||
name: oxlint
|
||||
secrets:
|
||||
OXC_BOT_PAT : ${{ secrets.OXC_BOT_PAT }}
|
||||
OXC_BOT_PAT: ${{ secrets.OXC_BOT_PAT }}
|
||||
|
||||
ecosystem-ci:
|
||||
needs: prepare
|
||||
|
|
|
|||
2
.github/workflows/release_wasm.yml
vendored
2
.github/workflows/release_wasm.yml
vendored
|
|
@ -49,7 +49,7 @@ jobs:
|
|||
|
||||
- uses: Boshen/setup-rust@main
|
||||
with:
|
||||
cache-key: 'wasm'
|
||||
cache-key: "wasm"
|
||||
|
||||
- name: Build
|
||||
working-directory: wasm/parser
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ on:
|
|||
type: string
|
||||
description: "The name defined in oxc_release.toml"
|
||||
secrets:
|
||||
OXC_BOT_PAT :
|
||||
OXC_BOT_PAT:
|
||||
required: true
|
||||
outputs:
|
||||
pull-request-number:
|
||||
|
|
|
|||
|
|
@ -14,12 +14,16 @@
|
|||
"**/fixtures/**",
|
||||
"**/*.snap.*",
|
||||
"**/CHANGELOG.md",
|
||||
"pnpm-workspace.yaml",
|
||||
"pnpm-lock.yaml",
|
||||
"napi/{parser,transform}/index.js",
|
||||
"napi/{parser,transform}/index.d.ts"
|
||||
"napi/{parser,transform}/index.d.ts",
|
||||
".github/.generated_ast_watch_list.yml"
|
||||
],
|
||||
"plugins": [
|
||||
"https://plugins.dprint.dev/typescript-0.91.8.wasm",
|
||||
"https://plugins.dprint.dev/json-0.19.3.wasm",
|
||||
"https://plugins.dprint.dev/markdown-0.17.8.wasm"
|
||||
"https://plugins.dprint.dev/markdown-0.17.8.wasm",
|
||||
"https://plugins.dprint.dev/g-plane/pretty_yaml-v0.5.0.wasm"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue