|
17 | 17 | sudo apt-get install -y software-properties-common jq |
18 | 18 | apt-add-repository -y 'deb https://archive.debian.org/debian bullseye-backports main' |
19 | 19 | sudo chown -R testbot . |
| 20 | + sudo mkdir -p /home/testbot/.cache/buf |
| 21 | + sudo chown -R testbot:testbot /home/testbot/.cache |
20 | 22 |
|
21 | 23 | - name: Read Node.js version from package.json |
22 | 24 | id: node-version |
|
32 | 34 | node-version: ${{ steps.node-version.outputs.version }} |
33 | 35 | cache: 'npm' |
34 | 36 |
|
| 37 | + - name: Verify Node.js version |
| 38 | + shell: bash |
| 39 | + run: | |
| 40 | + echo "Node.js version: $(node --version)" |
| 41 | + echo "Expected: >=22" |
| 42 | +
|
35 | 43 | - name: Restore node_modules cache |
36 | 44 | uses: actions/cache/restore@v4 |
37 | 45 | id: cache-node-modules |
|
45 | 53 | - name: Install npm dependencies |
46 | 54 | if: steps.cache-node-modules.outputs.cache-hit != 'true' |
47 | 55 | 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' |
49 | 57 |
|
50 | 58 | - name: Save node_modules cache |
51 | 59 | if: steps.cache-node-modules.outputs.cache-hit != 'true' |
|
56 | 64 |
|
57 | 65 | - name: Generate api-version.ts |
58 | 66 | 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' |
60 | 68 |
|
61 | 69 | - name: Download build artifacts |
62 | 70 | if: inputs.download_build_artifacts == 'true' |
|
79 | 87 | - name: Generate build-buf if not cached |
80 | 88 | if: inputs.download_build_artifacts != 'true' && steps.cache-build-buf.outputs.cache-hit != 'true' |
81 | 89 | 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' |
83 | 91 |
|
84 | 92 | - name: Save build-buf cache |
85 | 93 | if: inputs.download_build_artifacts != 'true' && steps.cache-build-buf.outputs.cache-hit != 'true' |
@@ -108,7 +116,7 @@ runs: |
108 | 116 | - name: Install Playwright browsers |
109 | 117 | if: steps.cache-playwright.outputs.cache-hit != 'true' |
110 | 118 | 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' |
112 | 120 |
|
113 | 121 | - name: Save Playwright browsers cache |
114 | 122 | if: steps.cache-playwright.outputs.cache-hit != 'true' |
|
0 commit comments