Skip to content

Commit

Permalink
ci(pnpm): ship to pnpm v8 (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabertazimi authored Mar 4, 2024
1 parent 3ec9e4b commit 4e3f0a3
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 16 deletions.
1 change: 1 addition & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"groupSlug": "dependencies"
}
],
"postUpdateOptions": ["pnpmDedupe"],
"rangeStrategy": "bump",
"reviewers": ["sabertazimi"],
"schedule": ["every weekend"],
Expand Down
20 changes: 15 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
with:
submodules: true
fetch-depth: 1
- name: Setup pnpm
uses: pnpm/action-setup@v3
- name: Cache cargo binaries and registry
uses: actions/cache@v4
with:
Expand All @@ -39,7 +41,7 @@ jobs:
cargo -V
- name: Run linter tests
run: |
yarn lint
pnpm lint
build:
name: Building
Expand All @@ -54,6 +56,8 @@ jobs:
with:
submodules: true
fetch-depth: 1
- name: Setup pnpm
uses: pnpm/action-setup@v3
- name: Cache cargo binaries and registry
uses: actions/cache@v4
with:
Expand All @@ -70,7 +74,7 @@ jobs:
cargo -V
- name: Build binaries
run: |
yarn build
pnpm build
unit:
name: Unit Testing
Expand All @@ -85,6 +89,8 @@ jobs:
with:
submodules: true
fetch-depth: 1
- name: Setup pnpm
uses: pnpm/action-setup@v3
- name: Cache cargo binaries and registry
uses: actions/cache@v4
with:
Expand All @@ -101,7 +107,7 @@ jobs:
cargo -V
- name: Run unit tests
run: |
yarn test
pnpm test
e2e:
name: E2E Testing
Expand All @@ -117,6 +123,8 @@ jobs:
with:
submodules: true
fetch-depth: ${{ matrix.git-depth }}
- name: Setup pnpm
uses: pnpm/action-setup@v3
- name: Cache cargo binaries and registry
uses: actions/cache@v4
with:
Expand All @@ -133,7 +141,7 @@ jobs:
cargo -V
- name: Run e2e tests
run: |
yarn e2e
pnpm e2e
docs:
name: Documentation
Expand All @@ -144,6 +152,8 @@ jobs:
with:
submodules: true
fetch-depth: 0 # Keep `0` for last updated time
- name: Setup pnpm
uses: pnpm/action-setup@v3
- name: Cache cargo binaries and registry
uses: actions/cache@v4
with:
Expand All @@ -165,7 +175,7 @@ jobs:
mdbook -V
- name: Build documentation
run: |
yarn docs
pnpm run docs
- name: Deploy to Github Pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
Expand Down
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
/book/

/node_modules/
package-lock.json
yarn.lock
pnpm-lock.yaml

.vscode/*
!.vscode/settings.json
13 changes: 5 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,23 @@
"repository": "https://github.com/sabertazimi/awesome-rust",
"author": "sabertazimi <sabertazimi@gmail.com>",
"license": "MIT",
"packageManager": "yarn@1.22.21",
"packageManager": "pnpm@8.15.4",
"scripts": {
"build": "cargo build --release",
"deps": "cargo install mdbook cargo-edit cargo-release cargo-workspace",
"dev:basis": "cargo run -p basis",
"dev:rustlings": "cd crates/rustlings && cargo run -- watch",
"docs": "yarn docs:book && yarn docs:api",
"docs": "pnpm docs:book && pnpm docs:api",
"docs:book": "mdbook build",
"docs:api": "cargo doc --workspace --no-deps && mv target/doc book/",
"e2e": "yarn e2e:basis && yarn e2e:rustlings",
"e2e": "pnpm e2e:basis && pnpm e2e:rustlings",
"e2e:basis": "cargo run -p basis --release",
"e2e:rustlings": "cd crates/rustlings && cargo run --release -- verify",
"format": "cargo fmt && cargo clippy --fix --allow-dirty --allow-staged",
"lint": "cargo fmt --check && cargo clippy --all-targets --release --locked -- -D clippy::all",
"prelease": "cargo release",
"release": "cargo release -x",
"start": "yarn dev:rustlings",
"start": "pnpm dev:rustlings",
"test": "cargo test"
},
"workspaces": [
"packages/*"
]
}
}
9 changes: 9 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
packages:
- 'packages/*'

0 comments on commit 4e3f0a3

Please sign in to comment.