Skip to content

Commit

Permalink
Merge branch 'main' into for-react-refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
GunseiKPaseri committed Aug 27, 2024
2 parents fba28fe + 61cedcf commit 1dc99c0
Show file tree
Hide file tree
Showing 190 changed files with 5,930 additions and 1,627 deletions.
1 change: 1 addition & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ codegen-bindings = "run -p xtask_codegen --features schema -- bindings"
codegen-configuration = "run -p xtask_codegen --features configuration -- configuration"
# updates a newly created crate
codegen-license = "run -p xtask_codegen --features license -- license"
codegen-migrate = "run -p xtask_codegen --features configuration -- migrate-eslint"
codegen-schema = "run -p xtask_codegen --features schema -- schema"
contributors = "run -p xtask_contributors --"
coverage = "run -p xtask_coverage --profile=release-with-debug --"
Expand Down
5 changes: 2 additions & 3 deletions .github/ISSUE_TEMPLATE/01_formatter_bug.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: 📝 Formatter bug report
description: Report a bug or regression of the formatter
title: "📝 <TITLE>"
labels: ["S-To triage"]
labels: [ "S-To triage" ]
body:
- type: markdown
attributes:
Expand Down Expand Up @@ -45,8 +45,7 @@ body:
You can also use the [playground](https://biomejs.dev/playground/) to share code snippets.
This is useful to reproduce the issue.
If you can't use the playground, use our official [CBS template](https://codesandbox.io/p/sandbox/biome-starter-cbs-rky6zq).
Fork it and share a reproduction.
If you can't use the playground, use `npm create @biomejs/biome-reproduction` to quickly create a repository.
placeholder: https://biomejs.dev/playground/...
validations:
required: true
Expand Down
5 changes: 2 additions & 3 deletions .github/ISSUE_TEMPLATE/02_lint_bug.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: 💅 Linter bug report
description: Report a bug or regression of the linter
title: "💅 <TITLE>"
labels: ["S-To triage"]
labels: [ "S-To triage" ]
body:
- type: markdown
attributes:
Expand Down Expand Up @@ -37,8 +37,7 @@ body:
You can also use the [playground](https://biomejs.dev/playground/) to share code snippets.
This is useful to reproduce the issue.
If you can't use the playground, use our official [CBS template](https://codesandbox.io/p/sandbox/biome-starter-cbs-rky6zq).
Fork it and share a reproduction.
If you can't use the playground, use `npm create @biomejs/biome-reproduction` to quickly create a repository.
placeholder: https://biomejs.dev/playground/...
validations:
required: true
Expand Down
5 changes: 2 additions & 3 deletions .github/ISSUE_TEMPLATE/03_bug.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: 🐛 Bug Report
description: Report a possible bug or regression
title: "🐛 <TITLE>"
labels: ["S-To triage"]
labels: [ "S-To triage" ]
body:
- type: markdown
attributes:
Expand Down Expand Up @@ -30,8 +30,7 @@ body:
You can also use the [playground](https://biomejs.dev/playground/) to share code snippets.
This is useful to reproduce the issue.
If you can't use the playground, use our official [CBS template](https://codesandbox.io/p/sandbox/biome-starter-cbs-rky6zq).
Fork it and share a reproduction.
If you can't use the playground, use `npm create @biomejs/biome-reproduction` to quickly create a repository.
placeholder: |
1.
2.
Expand Down
99 changes: 49 additions & 50 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,52 +1,51 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"timezone": "Europe/Gibraltar",
"schedule": [
"before 9am on monday"
],
"extends": [
"config:best-practices",
"helpers:pinGitHubActionDigestsToSemver"
],
"rangeStrategy": "bump",
"lockFileMaintenance": {
"enabled": false
},
"assignees": [
"@biomejs/maintainers",
"@biomejs/core-contributors"
],
"packageRules": [
{
"groupName": "github-actions",
"matchManagers": [
"github-actions"
]
},
{
"groupName": "Rust crates",
"matchManagers": [
"cargo"
],
"matchFileNames": [
"crates/**",
"xtask/**"
],
"ignoreDeps": [
"syn",
"quote",
"hashbrown",
"pulldown-cmark"
]
},
{
"groupName": "@biomejs packages",
"matchFileNames": [
"packages/**"
],
"matchManagers": [
"npm"
]
}
]
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"timezone": "Europe/Gibraltar",
"schedule": [
"before 9am on monday"
],
"extends": [
"config:best-practices",
"helpers:pinGitHubActionDigestsToSemver"
],
"rangeStrategy": "bump",
"lockFileMaintenance": {
"enabled": false
},
"assignees": [
"@biomejs/maintainers",
"@biomejs/core-contributors"
],
"packageRules": [
{
"groupName": "github-actions",
"matchManagers": [
"github-actions"
]
},
{
"groupName": "Rust crates",
"matchManagers": [
"cargo"
],
"matchFileNames": [
"crates/**",
"xtask/**"
],
"ignoreDeps": [
"syn",
"quote",
"tower"
]
},
{
"groupName": "@biomejs packages",
"matchFileNames": [
"packages/**"
],
"matchManagers": [
"npm"
]
}
]
}
14 changes: 5 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@

# This workflow run when something is pushed on main and it does:
# - normal checks like in the normal PRs
# - expand the test suite to be run on multiple OS
# - runs the coverage and prints in the command line
# - normal checks like in the normal PRs
# - expand the test suite to be run on multiple OS
# - runs the coverage and prints in the command line
name: CI on main
on:
workflow_dispatch:
Expand Down Expand Up @@ -92,20 +91,17 @@ jobs:
- name: Install toolchain
uses: moonrepo/setup-rust@e013866c4215f77c925f42f60257dec7dd18836e # v1.2.1
with:
bins: cargo-nextest
cache-base: main
- name: Run tests on ${{ matrix.os }}
run: cargo nextest run --workspace --verbose
- name: Clean cache
run: cargo cache --autoclean
run: cargo test --workspace

coverage:
name: Test262 Coverage
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
os: [ windows-latest, ubuntu-latest ]
steps:
# ref: https://github.com/orgs/community/discussions/26952
- name: Support longpaths
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,9 @@ jobs:
- name: Install toolchain
uses: moonrepo/setup-rust@e013866c4215f77c925f42f60257dec7dd18836e # v1.2.1
with:
bins: cargo-nextest
cache-base: main
- name: Run tests
run: cargo nextest run --workspace --verbose
- name: Run doctests
run: cargo test --doc
run: cargo test --workspace

test-node-api:
name: Test node.js API
Expand Down Expand Up @@ -180,6 +177,8 @@ jobs:
run: cargo codegen-schema
- name: Run the bindings codegen
run: cargo codegen-bindings
- name: Run the migrate codegen
run: cargo codegen-migrate
- name: Check for git diff
run: |
if [[ `git status --porcelain` ]]; then
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release_cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ jobs:
# Upload the CLI binary as a build artifact
- name: Upload CLI artifact
uses: actions/upload-artifact@89ef406dd8d7e03cfd12d9e0a4a378f454709029 # v4.3.5
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
with:
name: cli-${{ matrix.target }}
path: ./dist/biome-*
Expand All @@ -169,7 +169,7 @@ jobs:
run: wasm-pack build --out-dir ../../packages/@biomejs/wasm-web --target web --release --scope biomejs crates/biome_wasm

- name: Upload WASM artifact
uses: actions/upload-artifact@89ef406dd8d7e03cfd12d9e0a4a378f454709029 # v4.3.5
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
with:
name: wasm-${{ matrix.target }}
path: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_js_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
pnpm --filter @biomejs/js-api run build
- name: Upload JS API artifact
uses: actions/upload-artifact@89ef406dd8d7e03cfd12d9e0a4a378f454709029 # v4.3.5
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
with:
name: js-api
path: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release_knope.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ jobs:
- name: Upload Artifact
uses: actions/upload-artifact@89ef406dd8d7e03cfd12d9e0a4a378f454709029 # v4.3.5
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
with:
name: cli-${{ matrix.target }}
path: ./dist/biome-*
Expand All @@ -153,7 +153,7 @@ jobs:
run: wasm-pack build --out-dir ../../packages/@biomejs/wasm-web --target web --release --scope biomejs crates/biome_wasm

- name: Upload WASM artifact
uses: actions/upload-artifact@89ef406dd8d7e03cfd12d9e0a4a378f454709029 # v4.3.5
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
with:
name: wasm-${{ matrix.target }}
path: |
Expand Down
Loading

0 comments on commit 1dc99c0

Please sign in to comment.