Skip to content

Commit 2418cac

Browse files
authored
Merge pull request #2 from contractual-dev/lint_pnpm
move to pnpm
2 parents 90788c8 + cad256e commit 2418cac

File tree

20 files changed

+10688
-156212
lines changed

20 files changed

+10688
-156212
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ jobs:
1616
steps:
1717
- name: Checkout
1818
uses: actions/checkout@v4
19-
19+
20+
- name: Install pnpm
21+
uses: pnpm/action-setup@v4
22+
with:
23+
version: 9.15.4
2024
- name: Use Node ${{ matrix.node-version }}
2125
uses: actions/setup-node@v4
2226
with:
@@ -25,13 +29,13 @@ jobs:
2529
- uses: actions/cache@v2
2630
with:
2731
path: '**/node_modules'
28-
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
32+
key: ${{ runner.os }}-modules-${{ hashFiles('**/pnpm-lock.yaml') }}
2933

30-
- name: Yarn
31-
run: yarn --frozen-lockfile
34+
- name: PNPM
35+
run: pnpm install --frozen-lockfile
3236

3337
- name: Build
34-
run: yarn build
38+
run: pnpm run build
3539

3640
lint:
3741
name: Lint
@@ -48,16 +52,16 @@ jobs:
4852
- uses: actions/cache@v2
4953
with:
5054
path: '**/node_modules'
51-
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
55+
key: ${{ runner.os }}-modules-${{ hashFiles('**/pnpm-lock.yaml') }}
5256

53-
- name: Yarn
54-
run: yarn --frozen-lockfile
57+
- name: PNPM
58+
run: pnpm install --frozen-lockfile
5559

5660
- name: Lint
57-
run: yarn lint
61+
run: pnpm run lint
5862

5963
- name: Validate Packages
60-
run: yarn manypkg check
64+
run: pnpm manypkg check
6165

6266
test:
6367
name: Test
@@ -77,16 +81,16 @@ jobs:
7781
- uses: actions/cache@v2
7882
with:
7983
path: '**/node_modules'
80-
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
84+
key: ${{ runner.os }}-modules-${{ hashFiles('**/pnpm-lock.yaml') }}
8185

82-
- name: Yarn
83-
run: yarn --frozen-lockfile
86+
- name: PNPM
87+
run: pnpm install --frozen-lockfile
8488

8589
- name: Create Coverage Directory
8690
run: mkdir -p ${{ github.workspace }}/coverage
8791

8892
- name: Test
89-
run: yarn lerna exec yarn test --scope @suites/${{ matrix.project }}
93+
run: pnpm --filter @contractual/${{ matrix.project }} run test
9094
env:
9195
JEST_JUNIT_OUTPUT_NAME: ${{ matrix.project }}.xml
9296
JEST_JUNIT_OUTPUT_DIR: ${{ github.workspace }}/test-reports

0 commit comments

Comments
 (0)