forked from liquity/bold
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Contracts: move to pnpm (liquity#88)
- Loading branch information
Showing
4 changed files
with
6,987 additions
and
6,915 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,20 +73,28 @@ jobs: | |
with: | ||
submodules: recursive | ||
|
||
- uses: actions/setup-node@v3 | ||
- name: Install pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
node-version: 20 | ||
version: 8 | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.node-version' | ||
cache: 'pnpm' | ||
cache-dependency-path: 'contracts/pnpm-lock.yaml' | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
run: pnpm install | ||
|
||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
|
||
- name: Test contracts | ||
run: yarn test | ||
run: pnpm test | ||
|
||
coverage: | ||
name: Coverage | ||
|
@@ -125,20 +133,22 @@ jobs: | |
# id: coverage_filter | ||
|
||
# Hardhat | ||
- uses: actions/setup-node@v3 | ||
- name: Install pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
node-version: 20 | ||
cache: yarn | ||
cache-dependency-path: "./contracts/yarn.lock" | ||
env: | ||
# Workaround for https://github.com/actions/setup-node/issues/317 | ||
FORCE_COLOR: 0 | ||
version: 8 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.node-version' | ||
cache: 'pnpm' | ||
cache-dependency-path: 'contracts/pnpm-lock.yaml' | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
run: pnpm install | ||
|
||
- name: harhdat coverage | ||
run: yarn coverage | ||
run: pnpm coverage | ||
continue-on-error: true | ||
env: | ||
NODE_OPTIONS: --max-old-space-size=4096 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
20 |
Oops, something went wrong.