Skip to content

Commit 4f730e8

Browse files
committed
Merge branch 'breakup-workflows' into test-breakup-workflows
2 parents 98405bd + 3eefe30 commit 4f730e8

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/actions/prepare-workflow/action.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ runs:
1717
sudo apt-get install -y software-properties-common jq
1818
apt-add-repository -y 'deb https://archive.debian.org/debian bullseye-backports main'
1919
sudo chown -R testbot .
20+
sudo mkdir -p /home/testbot/.cache/buf
21+
sudo chown -R testbot:testbot /home/testbot/.cache
2022
2123
- name: Read Node.js version from package.json
2224
id: node-version
@@ -32,6 +34,12 @@ runs:
3234
node-version: ${{ steps.node-version.outputs.version }}
3335
cache: 'npm'
3436

37+
- name: Verify Node.js version
38+
shell: bash
39+
run: |
40+
echo "Node.js version: $(node --version)"
41+
echo "Expected: >=22"
42+
3543
- name: Restore node_modules cache
3644
uses: actions/cache/restore@v4
3745
id: cache-node-modules
@@ -45,7 +53,7 @@ runs:
4553
- name: Install npm dependencies
4654
if: steps.cache-node-modules.outputs.cache-hit != 'true'
4755
shell: bash
48-
run: sudo -u testbot bash -lc 'npm ci --audit=false'
56+
run: sudo -E -u testbot bash -lc 'npm ci --audit=false'
4957

5058
- name: Save node_modules cache
5159
if: steps.cache-node-modules.outputs.cache-hit != 'true'
@@ -56,7 +64,7 @@ runs:
5664

5765
- name: Generate api-version.ts
5866
shell: bash
59-
run: sudo -u testbot bash -lc 'node ./scripts/write-versions.js'
67+
run: sudo -E -u testbot bash -lc 'node ./scripts/write-versions.js'
6068

6169
- name: Download build artifacts
6270
if: inputs.download_build_artifacts == 'true'
@@ -79,7 +87,7 @@ runs:
7987
- name: Generate build-buf if not cached
8088
if: inputs.download_build_artifacts != 'true' && steps.cache-build-buf.outputs.cache-hit != 'true'
8189
shell: bash
82-
run: sudo -u testbot bash -lc 'make build-buf-ci'
90+
run: sudo -E -u testbot bash -lc 'make build-buf-ci'
8391

8492
- name: Save build-buf cache
8593
if: inputs.download_build_artifacts != 'true' && steps.cache-build-buf.outputs.cache-hit != 'true'
@@ -108,7 +116,7 @@ runs:
108116
- name: Install Playwright browsers
109117
if: steps.cache-playwright.outputs.cache-hit != 'true'
110118
shell: bash
111-
run: sudo -u testbot bash -lc 'cd e2e && npx playwright install --with-deps'
119+
run: sudo -E -u testbot bash -lc 'cd e2e && npx playwright install --with-deps'
112120

113121
- name: Save Playwright browsers cache
114122
if: steps.cache-playwright.outputs.cache-hit != 'true'

0 commit comments

Comments
 (0)