Skip to content

Commit

Permalink
Contracts: move to pnpm (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpierre authored Apr 3, 2024
1 parent 97c746a commit 6a755d0
Show file tree
Hide file tree
Showing 4 changed files with 6,987 additions and 6,915 deletions.
36 changes: 23 additions & 13 deletions .github/workflows/contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20
Loading

0 comments on commit 6a755d0

Please sign in to comment.