Skip to content

Commit 31cc079

Browse files
authored
chore: run addon tests conditionally (#2115)
1 parent f38da25 commit 31cc079

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

.github/workflows/bundle-stats.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
- name: Install dependencies && and build lib
2525
run: |
2626
node -e "console.log(process.arch)"
27+
npm install -g [email protected]
2728
pnpm install
2829
pnpm run build:cli:release
2930
- name: Create rspack stats
File renamed without changes.

.github/workflows/check-rs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,6 @@ jobs:
9797
# We need to install sass first to enable sass-loader
9898
run: |
9999
node -e "console.log(process.arch)"
100-
npm i -g pnpm
101-
pnpm i
100+
npm install -g pnpm@7.25.0
101+
pnpm install
102102
cargo test --all -- --nocapture

.github/workflows/test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ on:
44
branches:
55
- main
66
pull_request:
7+
paths: # Only run when changes are made to rust code or root Cargo
8+
- "crates/**"
9+
- "packages/**"
10+
- "Cargo.toml"
11+
- "Cargo.lock"
12+
- "rust-toolchain.toml"
13+
- "package.json"
14+
- "pnpm-lock.yaml"
15+
- "pnpm-workspace.yaml"
716
branches:
817
- "**"
918
- "!release-**"

0 commit comments

Comments
 (0)