mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 04:23:46 +00:00
ci: Fix pnpm store path for GitHub Actions.
This would ordinarily be determined by running ‘pnpm store path’, but pnpm is not installed yet at that point. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
a4d897c42b
commit
d926144e13
8
.github/workflows/production-suite.yml
vendored
8
.github/workflows/production-suite.yml
vendored
@@ -75,7 +75,7 @@ jobs:
|
|||||||
- name: Restore pnpm store
|
- name: Restore pnpm store
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ~/.local/share/pnpm/store
|
path: /__w/.pnpm-store
|
||||||
key: v1-pnpm-store-focal-${{ hashFiles('pnpm-lock.yaml') }}
|
key: v1-pnpm-store-focal-${{ hashFiles('pnpm-lock.yaml') }}
|
||||||
|
|
||||||
- name: Restore python cache
|
- name: Restore python cache
|
||||||
@@ -102,6 +102,12 @@ jobs:
|
|||||||
path: /tmp/production-build
|
path: /tmp/production-build
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|
||||||
|
- name: Verify pnpm store path
|
||||||
|
run: |
|
||||||
|
set -x
|
||||||
|
path="$(pnpm store path)"
|
||||||
|
[[ "$path" == /__w/.pnpm-store/* ]]
|
||||||
|
|
||||||
- name: Generate failure report string
|
- name: Generate failure report string
|
||||||
id: failure_report_string
|
id: failure_report_string
|
||||||
if: ${{ failure() && github.repository == 'zulip/zulip' && github.event_name == 'push' }}
|
if: ${{ failure() && github.repository == 'zulip/zulip' && github.event_name == 'push' }}
|
||||||
|
|||||||
8
.github/workflows/zulip-ci.yml
vendored
8
.github/workflows/zulip-ci.yml
vendored
@@ -79,7 +79,7 @@ jobs:
|
|||||||
- name: Restore pnpm store
|
- name: Restore pnpm store
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ~/.local/share/pnpm/store
|
path: /__w/.pnpm-store
|
||||||
key: v1-pnpm-store-${{ matrix.os }}-${{ hashFiles('pnpm-lock.yaml') }}
|
key: v1-pnpm-store-${{ matrix.os }}-${{ hashFiles('pnpm-lock.yaml') }}
|
||||||
|
|
||||||
- name: Restore python cache
|
- name: Restore python cache
|
||||||
@@ -245,6 +245,12 @@ jobs:
|
|||||||
- name: Check development database build
|
- name: Check development database build
|
||||||
run: ./tools/ci/setup-backend
|
run: ./tools/ci/setup-backend
|
||||||
|
|
||||||
|
- name: Verify pnpm store path
|
||||||
|
run: |
|
||||||
|
set -x
|
||||||
|
path="$(pnpm store path)"
|
||||||
|
[[ "$path" == /__w/.pnpm-store/* ]]
|
||||||
|
|
||||||
- name: Generate failure report string
|
- name: Generate failure report string
|
||||||
id: failure_report_string
|
id: failure_report_string
|
||||||
if: ${{ failure() && github.repository == 'zulip/zulip' && github.event_name == 'push' }}
|
if: ${{ failure() && github.repository == 'zulip/zulip' && github.event_name == 'push' }}
|
||||||
|
|||||||
Reference in New Issue
Block a user