Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(dprint): format yaml files #5598

Merged
merged 1 commit into from
Sep 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/actions/pnpm/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 26 additions & 26 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -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 changes: 2 additions & 4 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
164 changes: 82 additions & 82 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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

# - 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

# - 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 &

# # 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: 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: 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: 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' }}

# - name: Install codspeed
# uses: taiki-e/install-action@v2
# with:
# tool: cargo-codspeed

# - 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 &

# # 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: 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: 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:
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ on:
branches:
- main
paths:
- '**.rs'
- '.github/workflows/codecov.yml'
- "**.rs"
- ".github/workflows/codecov.yml"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/link-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint-rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/miri.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
Loading