|
|
@@ -30,11 +30,11 @@ jobs:
|
|
|
with:
|
|
|
node-version: ${{ inputs.node-version }}
|
|
|
cache: 'yarn'
|
|
|
- cache-dependency-path: '**/yarn.lock'
|
|
|
+ cache-dependency-path: '**/pnpm-lock.yaml'
|
|
|
|
|
|
- name: Install turbo
|
|
|
run: |
|
|
|
- yarn global add turbo
|
|
|
+ pnpm add turbo --global
|
|
|
|
|
|
- name: Prune repositories
|
|
|
run: |
|
|
|
@@ -48,14 +48,14 @@ jobs:
|
|
|
path: |
|
|
|
**/node_modules
|
|
|
!**/node_modules/.cache/turbo
|
|
|
- key: node_modules-app-build-prod-${{ runner.OS }}-node${{ inputs.node-version }}-${{ hashFiles('**/yarn.lock') }}
|
|
|
+ key: node_modules-app-build-prod-${{ runner.OS }}-node${{ inputs.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}
|
|
|
restore-keys: |
|
|
|
node_modules-app-build-prod-${{ runner.OS }}-node${{ inputs.node-version }}-
|
|
|
|
|
|
- name: Install dependencies
|
|
|
run: |
|
|
|
- yarn global add node-gyp
|
|
|
- yarn --frozen-lockfile
|
|
|
+ pnpm add node-gyp --global
|
|
|
+ pnpm install --frozen-lockfile
|
|
|
|
|
|
- name: Cache/Restore dist
|
|
|
uses: actions/cache@v4
|
|
|
@@ -141,11 +141,11 @@ jobs:
|
|
|
with:
|
|
|
node-version: ${{ inputs.node-version }}
|
|
|
cache: 'yarn'
|
|
|
- cache-dependency-path: '**/yarn.lock'
|
|
|
+ cache-dependency-path: '**/pnpm-lock.yaml'
|
|
|
|
|
|
- name: Install turbo
|
|
|
run: |
|
|
|
- yarn global add turbo
|
|
|
+ pnpm add turbo --global
|
|
|
|
|
|
- name: Prune repositories
|
|
|
run: |
|
|
|
@@ -159,13 +159,13 @@ jobs:
|
|
|
path: |
|
|
|
**/node_modules
|
|
|
# shared key with build-prod
|
|
|
- key: node_modules-app-build-prod-${{ runner.OS }}-node${{ inputs.node-version }}-${{ hashFiles('**/yarn.lock') }}
|
|
|
+ key: node_modules-app-build-prod-${{ runner.OS }}-node${{ inputs.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}
|
|
|
restore-keys: |
|
|
|
node_modules-app-build-prod-${{ runner.OS }}-node${{ inputs.node-version }}-
|
|
|
|
|
|
- name: Install dependencies
|
|
|
run: |
|
|
|
- yarn --production
|
|
|
+ pnpm install --prod
|
|
|
|
|
|
- name: Download production files artifact
|
|
|
uses: actions/download-artifact@v4
|
|
|
@@ -176,11 +176,11 @@ jobs:
|
|
|
run: |
|
|
|
tar -xf ${{ needs.build-prod.outputs.PROD_FILES }}
|
|
|
|
|
|
- - name: yarn server:ci
|
|
|
+ - name: pnpm run server:ci
|
|
|
working-directory: ./apps/app
|
|
|
run: |
|
|
|
cp config/ci/.env.local.for-ci .env.production.local
|
|
|
- yarn server:ci
|
|
|
+ pnpm run server:ci
|
|
|
env:
|
|
|
MONGO_URI: mongodb://localhost:${{ job.services.mongodb.ports['27017'] }}/growi
|
|
|
ELASTICSEARCH_URI: http://localhost:${{ job.services.elasticsearch.ports['9200'] }}/growi
|
|
|
@@ -232,7 +232,7 @@ jobs:
|
|
|
with:
|
|
|
node-version: ${{ inputs.node-version }}
|
|
|
cache: 'yarn'
|
|
|
- cache-dependency-path: '**/yarn.lock'
|
|
|
+ cache-dependency-path: '**/pnpm-lock.yaml'
|
|
|
|
|
|
- name: Restore node_modules
|
|
|
uses: actions/cache/restore@v4
|
|
|
@@ -240,18 +240,18 @@ jobs:
|
|
|
path: |
|
|
|
**/node_modules
|
|
|
# saved key by build-prod
|
|
|
- key: node_modules-app-build-prod-${{ runner.OS }}-node${{ inputs.node-version }}-${{ hashFiles('**/yarn.lock') }}
|
|
|
+ key: node_modules-app-build-prod-${{ runner.OS }}-node${{ inputs.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}
|
|
|
restore-keys: |
|
|
|
node_modules-app-build-prod-${{ runner.OS }}-node${{ inputs.node-version }}-
|
|
|
|
|
|
- name: Install dependencies
|
|
|
run: |
|
|
|
- yarn global add node-gyp
|
|
|
- yarn --frozen-lockfile
|
|
|
+ pnpm add add node-gyp --global
|
|
|
+ pnpm install --frozen-lockfile
|
|
|
|
|
|
- name: Install Playwright browsers
|
|
|
run: |
|
|
|
- yarn playwright install --with-deps ${{ matrix.browser }}
|
|
|
+ pnpm playwright install --with-deps ${{ matrix.browser }}
|
|
|
|
|
|
- name: Download production files artifact
|
|
|
uses: actions/download-artifact@v4
|
|
|
@@ -271,7 +271,7 @@ jobs:
|
|
|
if: ${{ matrix.browser == 'chromium' }}
|
|
|
working-directory: ./apps/app
|
|
|
run: |
|
|
|
- yarn playwright test --project=chromium/installer
|
|
|
+ pnpm playwright test --project=chromium/installer
|
|
|
env:
|
|
|
HOME: /root # ref: https://github.com/microsoft/playwright/issues/6500
|
|
|
MONGO_URI: mongodb://mongodb:27017/growi-playwright-installer
|
|
|
@@ -285,7 +285,7 @@ jobs:
|
|
|
- name: Playwright Run
|
|
|
working-directory: ./apps/app
|
|
|
run: |
|
|
|
- yarn playwright test --project=${{ matrix.browser }} --shard=${{ matrix.shard }}
|
|
|
+ pnpm playwright test --project=${{ matrix.browser }} --shard=${{ matrix.shard }}
|
|
|
env:
|
|
|
HOME: /root # ref: https://github.com/microsoft/playwright/issues/6500
|
|
|
MONGO_URI: mongodb://mongodb:27017/growi-playwright
|
|
|
@@ -299,7 +299,7 @@ jobs:
|
|
|
- name: Playwright Run (--project=${browser}/guest-mode)
|
|
|
working-directory: ./apps/app
|
|
|
run: |
|
|
|
- yarn playwright test --project=${{ matrix.browser }}/guest-mode --shard=${{ matrix.shard }}
|
|
|
+ pnpm playwright test --project=${{ matrix.browser }}/guest-mode --shard=${{ matrix.shard }}
|
|
|
env:
|
|
|
HOME: /root # ref: https://github.com/microsoft/playwright/issues/6500
|
|
|
MONGO_URI: mongodb://mongodb:27017/growi-playwright-guest-mode
|