Skip to content

Commit 195e2f9

Browse files
authored
chore: backport from unrs/unrs-resolver (#592)
1 parent abfad60 commit 195e2f9

File tree

119 files changed

+2715
-362
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+2715
-362
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
root=true
2+
3+
[*]
4+
indent_style=space
5+
indent_size=2
6+
tab_width=2
7+
end_of_line=lf
8+
charset=utf-8
9+
trim_trailing_whitespace=true
10+
insert_final_newline=true
11+
12+
[*.rs]
13+
indent_size = 4

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
github:
2+
- Boshen
3+
- JounQin

.github/actions/pnpm/action.yml

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,45 @@ name: Pnpm
22

33
description: Install pnpm
44

5+
inputs:
6+
architecture:
7+
description: The architecture to use
8+
required: false
9+
cpu:
10+
description: The cpu architecture to use
11+
required: false
12+
513
runs:
614
using: composite
715
steps:
8-
- uses: oxc-project/setup-node@f42e3bda950c7454575e78ee4eaac880a077700c # v1.0.0
16+
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
17+
18+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
19+
with:
20+
node-version-file: .node-version
21+
architecture: ${{ inputs.architecture }}
22+
cache: pnpm
23+
24+
- if: ${{ inputs.cpu }}
25+
shell: bash
26+
run: pnpm config set supportedArchitectures.cpu "${CPU_ARCH}"
27+
env:
28+
CPU_ARCH: ${{ inputs.cpu }}
929

10-
- name: yarn
30+
- name: pnpm
1131
shell: bash
1232
run: |
13-
cd fixtures/pnp
1433
corepack enable
34+
pnpm install
35+
36+
- name: yarn pnp
37+
shell: bash
38+
run: |
39+
cd fixtures/pnp
1540
yarn install
1641
1742
cd ../global-pnp
1843
yarn install
44+
45+
cd ../yarn
46+
yarn install

.github/renovate.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
33
"extends": ["github>Boshen/renovate"],
4-
"ignorePaths": ["**/node_modules/**", "**/fixtures/**"],
5-
"packageRules": [
6-
{
7-
"groupName": "ignored crates",
8-
"matchManagers": ["cargo"],
9-
"matchPackageNames": ["thiserror"],
10-
"enabled": false
11-
}
12-
]
4+
"ignorePaths": ["**/node_modules/**", "**/fixtures/**"]
135
}

.github/workflows/autofix.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ permissions: {}
44

55
on:
66
pull_request:
7-
types: [opened, synchronize]
7+
types:
8+
- opened
9+
- synchronize
810

911
concurrency:
10-
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
11-
cancel-in-progress: ${{ github.ref_name != 'main' }}
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
1214

1315
jobs:
1416
autofix:

.github/workflows/benchmark.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ permissions: {}
55
on:
66
workflow_dispatch:
77
pull_request:
8-
types: [opened, synchronize]
8+
types:
9+
- opened
10+
- synchronize
911
paths:
1012
- "src/*.rs"
1113
- "Cargo.lock"
@@ -17,7 +19,7 @@ on:
1719
- "Cargo.lock"
1820

1921
concurrency:
20-
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
22+
group: ${{ github.workflow }}-${{ github.ref }}
2123
cancel-in-progress: true
2224

2325
jobs:

.github/workflows/ci.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ permissions: {}
55
on:
66
workflow_dispatch:
77
pull_request:
8-
types: [opened, synchronize]
8+
types:
9+
- opened
10+
- synchronize
911
paths-ignore:
1012
- "**/*.md"
1113
- "!.github/workflows/ci.yml"
@@ -17,8 +19,8 @@ on:
1719
- "!.github/workflows/ci.yml"
1820

1921
concurrency:
20-
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
21-
cancel-in-progress: ${{ github.ref_name != 'main' }}
22+
group: ${{ github.workflow }}-${{ github.ref }}
23+
cancel-in-progress: true
2224

2325
defaults:
2426
run:
@@ -74,8 +76,8 @@ jobs:
7476

7577
- name: Check
7678
run: |
77-
rustup target add wasm32-unknown-unknown
78-
cargo check --all-features --target wasm32-unknown-unknown
79+
rustup target add wasm32-wasip1
80+
cargo check --all-features --target wasm32-wasip1
7981
8082
wasi:
8183
name: Test wasi target

.github/workflows/codecov.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ permissions: {}
55
on:
66
workflow_dispatch:
77
pull_request:
8-
types: [opened, synchronize]
8+
types:
9+
- opened
10+
- synchronize
911
paths:
1012
- "src/**/*.rs"
1113
- "Cargo.lock"
@@ -18,7 +20,7 @@ on:
1820

1921
concurrency:
2022
group: ${{ github.workflow }}-${{ github.ref }}
21-
cancel-in-progress: ${{ github.ref_name != 'main' }}
23+
cancel-in-progress: true
2224

2325
jobs:
2426
coverage:

.github/workflows/deny.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ permissions: {}
55
on:
66
workflow_dispatch:
77
pull_request:
8-
types: [opened, synchronize]
8+
types:
9+
- opened
10+
- synchronize
911
paths:
1012
- "Cargo.lock"
1113
- "deny.toml"
@@ -19,8 +21,8 @@ on:
1921
- ".github/workflows/deny.yml"
2022

2123
concurrency:
22-
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
23-
cancel-in-progress: ${{ github.ref_name != 'main' }}
24+
group: ${{ github.workflow }}-${{ github.ref }}
25+
cancel-in-progress: true
2426

2527
jobs:
2628
deny:

0 commit comments

Comments
 (0)