Skip to content

Commit

Permalink
Merge pull request #2 from contractual-dev/lint_pnpm
Browse files Browse the repository at this point in the history
move to pnpm
  • Loading branch information
qballer authored Jan 21, 2025
2 parents 90788c8 + cad256e commit 2418cac
Show file tree
Hide file tree
Showing 20 changed files with 10,688 additions and 156,212 deletions.
32 changes: 18 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4


- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.15.4
- name: Use Node ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
Expand All @@ -25,13 +29,13 @@ jobs:
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-modules-${{ hashFiles('**/pnpm-lock.yaml') }}

- name: Yarn
run: yarn --frozen-lockfile
- name: PNPM
run: pnpm install --frozen-lockfile

- name: Build
run: yarn build
run: pnpm run build

lint:
name: Lint
Expand All @@ -48,16 +52,16 @@ jobs:
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-modules-${{ hashFiles('**/pnpm-lock.yaml') }}

- name: Yarn
run: yarn --frozen-lockfile
- name: PNPM
run: pnpm install --frozen-lockfile

- name: Lint
run: yarn lint
run: pnpm run lint

- name: Validate Packages
run: yarn manypkg check
run: pnpm manypkg check

test:
name: Test
Expand All @@ -77,16 +81,16 @@ jobs:
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-modules-${{ hashFiles('**/pnpm-lock.yaml') }}

- name: Yarn
run: yarn --frozen-lockfile
- name: PNPM
run: pnpm install --frozen-lockfile

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

- name: Test
run: yarn lerna exec yarn test --scope @suites/${{ matrix.project }}
run: pnpm --filter @contractual/${{ matrix.project }} run test
env:
JEST_JUNIT_OUTPUT_NAME: ${{ matrix.project }}.xml
JEST_JUNIT_OUTPUT_DIR: ${{ github.workspace }}/test-reports
Expand Down
Loading

0 comments on commit 2418cac

Please sign in to comment.