mirror of
https://github.com/zen-browser/www.git
synced 2025-07-08 17:30:01 +02:00
fix(ci-pipeline): update commands to use pnpm exec
This commit is contained in:
parent
2dc109ccc5
commit
4b9d6ba81b
1 changed files with 6 additions and 8 deletions
14
.github/workflows/ci-pipeline.yml
vendored
14
.github/workflows/ci-pipeline.yml
vendored
|
@ -52,7 +52,7 @@ jobs:
|
||||||
node_modules
|
node_modules
|
||||||
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
||||||
- name: Run Eslint check
|
- name: Run Eslint check
|
||||||
run: turbo run lint
|
run: pnpm exec turbo run lint
|
||||||
|
|
||||||
prettier:
|
prettier:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -73,7 +73,7 @@ jobs:
|
||||||
node_modules
|
node_modules
|
||||||
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
||||||
- name: Run Prettier check
|
- name: Run Prettier check
|
||||||
run: turbo run format
|
run: pnpm exec turbo run format
|
||||||
|
|
||||||
cspell:
|
cspell:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -94,7 +94,7 @@ jobs:
|
||||||
node_modules
|
node_modules
|
||||||
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
||||||
- name: Run cspell check
|
- name: Run cspell check
|
||||||
run: turbo run spell
|
run: pnpm exec turbo run spell
|
||||||
|
|
||||||
vitest:
|
vitest:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -115,7 +115,7 @@ jobs:
|
||||||
node_modules
|
node_modules
|
||||||
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
||||||
- name: Run Vitest tests
|
- name: Run Vitest tests
|
||||||
run: turbo vitest run
|
run: pnpm exec turbo vitest run
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -136,7 +136,7 @@ jobs:
|
||||||
node_modules
|
node_modules
|
||||||
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
||||||
- name: Build project
|
- name: Build project
|
||||||
run: turbo run build
|
run: pnpm exec turbo run build
|
||||||
- name: Upload build output
|
- name: Upload build output
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
@ -164,8 +164,6 @@ jobs:
|
||||||
.turbo
|
.turbo
|
||||||
node_modules
|
node_modules
|
||||||
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
||||||
- name: Install dependencies
|
|
||||||
run: pnpm install --frozen-lockfile
|
|
||||||
- name: Install Playwright Browsers
|
- name: Install Playwright Browsers
|
||||||
run: pnpm exec playwright install --with-deps
|
run: pnpm exec playwright install --with-deps
|
||||||
- name: Download build output
|
- name: Download build output
|
||||||
|
@ -174,4 +172,4 @@ jobs:
|
||||||
name: build
|
name: build
|
||||||
path: dist
|
path: dist
|
||||||
- name: Run Playwright tests
|
- name: Run Playwright tests
|
||||||
run: turbo run test:playwright
|
run: pnpm exec turbo run test:playwright
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue