Skip to content

Commit 5b599a4

Browse files
committed
Merge remote-tracking branch 'origin/main' into mael/bench
2 parents 5766a0e + d606e27 commit 5b599a4

File tree

17 files changed

+895
-889
lines changed

17 files changed

+895
-889
lines changed

.github/workflows/bench.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
name: Pull Request Benchmark
1+
name: Benchmark
22

33
on:
44
pull_request:
55

66
jobs:
77
bench:
8-
name: Run benchmark
98
runs-on: ubuntu-latest
109
steps:
11-
- uses: actions/checkout@v4
10+
- uses: taiki-e/checkout-action@v1
11+
1212
- uses: boa-dev/criterion-compare-action@v3
1313
with:
1414
branchName: ${{github.base_ref}}

.github/workflows/ci.yml

Lines changed: 42 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,50 @@ name: Rust
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: ["main"]
66
pull_request:
7-
branches: [ "main" ]
8-
9-
env:
10-
CARGO_TERM_COLOR: always
7+
branches: ["main"]
118

129
jobs:
13-
build:
10+
test:
11+
strategy:
12+
matrix:
13+
os:
14+
- ubuntu-latest
15+
- macos-latest
16+
- windows-latest
17+
runs-on: ${{matrix.os}}
18+
steps:
19+
- uses: taiki-e/checkout-action@v1
20+
21+
- uses: oxc-project/[email protected]
22+
with:
23+
save-cache: ${{ github.ref_name == 'main' }}
24+
25+
- run: cargo check
26+
27+
- run: cargo test
28+
29+
clippy:
1430
runs-on: ubuntu-latest
1531
steps:
16-
- uses: actions/checkout@v4
17-
- name: Build
18-
run: cargo build
19-
- name: Run tests
20-
run: cargo test
32+
- uses: taiki-e/checkout-action@v1
33+
34+
- uses: oxc-project/[email protected]
35+
with:
36+
save-cache: ${{ github.ref_name == 'main' }}
37+
cache-key: clippy
38+
components: clippy
39+
40+
- run: cargo clippy --all-targets --all-features -- -D warnings
41+
42+
fmt:
43+
runs-on: ubuntu-latest
44+
steps:
45+
- uses: taiki-e/checkout-action@v1
46+
47+
- uses: oxc-project/[email protected]
48+
with:
49+
components: rustfmt
50+
51+
- run: cargo fmt --check

.github/workflows/release-plz.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Release Plz
2+
3+
permissions: {}
4+
5+
on:
6+
workflow_dispatch:
7+
push:
8+
branches:
9+
- main
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
release-plz:
17+
name: Release-plz
18+
runs-on: ubuntu-latest
19+
permissions:
20+
pull-requests: write
21+
contents: write
22+
steps:
23+
- uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0
26+
persist-credentials: true # required by release-plz
27+
28+
- name: Run release-plz
29+
id: release-plz
30+
uses: MarcoIeni/release-plz-action@8724d33cd97b8295051102e2e19ca592962238f5 # v0.5.108
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

.rustfmt.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
style_edition = "2024"
2+
use_small_heuristics = "Max"

CHANGELOG.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [Unreleased]
9+
10+
## [0.12.0](https://github.com/yarnpkg/pnp-rs/compare/v0.11.0...v0.12.0) - 2025-07-10
11+
12+
### Other
13+
14+
- remove `AsRef<Path>` from functions ([#38](https://github.com/yarnpkg/pnp-rs/pull/38))
15+
- change `find_closest_pnp_manifest_path` from recursion to a loop ([#35](https://github.com/yarnpkg/pnp-rs/pull/35))
16+
17+
## [0.11.0](https://github.com/yarnpkg/pnp-rs/compare/v0.10.0...v0.11.0) - 2025-07-01
18+
19+
### Fixed
20+
21+
- fix windows failure ([#22](https://github.com/yarnpkg/pnp-rs/pull/22))
22+
23+
### Other
24+
25+
- add release-plz.yml ([#24](https://github.com/yarnpkg/pnp-rs/pull/24))
26+
- remove indexmap
27+
- remove `serde_with` ([#32](https://github.com/yarnpkg/pnp-rs/pull/32))
28+
- remove the unused `Serialize` on `PackageLocator` ([#31](https://github.com/yarnpkg/pnp-rs/pull/31))
29+
- bump deps ([#30](https://github.com/yarnpkg/pnp-rs/pull/30))
30+
- use fxhash in zip data structures ([#28](https://github.com/yarnpkg/pnp-rs/pull/28))
31+
- remove the `lazy_static` crate ([#27](https://github.com/yarnpkg/pnp-rs/pull/27))
32+
- improve `NODEJS_BUILTINS` ([#26](https://github.com/yarnpkg/pnp-rs/pull/26))
33+
- remove unnecessary derive `Serialize` on `Error` ([#25](https://github.com/yarnpkg/pnp-rs/pull/25))
34+
- use fxhash ([#23](https://github.com/yarnpkg/pnp-rs/pull/23))
35+
- `clippy::result_large_err` for the `Error` type ([#21](https://github.com/yarnpkg/pnp-rs/pull/21))
36+
- run `cargo clippy --fix` + manual fixes ([#20](https://github.com/yarnpkg/pnp-rs/pull/20))
37+
- run `cargo fmt` ([#19](https://github.com/yarnpkg/pnp-rs/pull/19))
38+
- add `cargo check` and `cargo test --all-features` ([#18](https://github.com/yarnpkg/pnp-rs/pull/18))
39+
- add rust-toolchain.toml ([#17](https://github.com/yarnpkg/pnp-rs/pull/17))
40+
- disable more
41+
- enable most tests on windows CI

0 commit comments

Comments
 (0)