|
12 | 12 | runs-on: ubuntu-latest
|
13 | 13 | outputs:
|
14 | 14 | cache-key: ${{ steps.cache-key.outputs.key }}
|
15 |
| - playwright-version: ${{ steps.playwright-version.outputs.PLAYWRIGHT_VERSION }} |
16 | 15 | steps:
|
17 | 16 | - name: Checkout ComfyUI
|
18 | 17 | uses: actions/checkout@v5
|
|
65 | 64 | id: cache-key
|
66 | 65 | run: echo "key=$(date +%s)" >> $GITHUB_OUTPUT
|
67 | 66 |
|
68 |
| - - name: Playwright Version |
69 |
| - id: playwright-version |
70 |
| - run: | |
71 |
| - PLAYWRIGHT_VERSION=$(pnpm ls @playwright/test --json | jq --raw-output '.[0].devDependencies["@playwright/test"].version') |
72 |
| - echo "PLAYWRIGHT_VERSION=$PLAYWRIGHT_VERSION" >> $GITHUB_OUTPUT |
73 |
| - working-directory: ComfyUI_frontend |
74 | 67 |
|
75 | 68 | - name: Save cache
|
76 | 69 | uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684
|
@@ -123,22 +116,8 @@ jobs:
|
123 | 116 | working-directory: ComfyUI
|
124 | 117 |
|
125 | 118 |
|
126 |
| - - name: Cache Playwright Browsers |
127 |
| - uses: actions/cache@v4 |
128 |
| - id: cache-playwright-browsers |
129 |
| - with: |
130 |
| - path: '~/.cache/ms-playwright' |
131 |
| - key: '${{ runner.os }}-playwright-browsers-${{ needs.setup.outputs.playwright-version }}' |
132 |
| - |
133 |
| - - name: Install Playwright Browsers |
134 |
| - if: steps.cache-playwright-browsers.outputs.cache-hit != 'true' |
135 |
| - run: pnpm exec playwright install chromium --with-deps |
136 |
| - working-directory: ComfyUI_frontend |
137 |
| - |
138 |
| - - name: Install Playwright Browsers (operating system dependencies) |
139 |
| - if: steps.cache-playwright-browsers.outputs.cache-hit == 'true' |
140 |
| - run: pnpm exec playwright install-deps |
141 |
| - working-directory: ComfyUI_frontend |
| 119 | + - name: Setup Playwright |
| 120 | + uses: ./ComfyUI_frontend/.github/actions/setup-playwright |
142 | 121 |
|
143 | 122 | - name: Start ComfyUI server
|
144 | 123 | run: |
|
@@ -202,22 +181,8 @@ jobs:
|
202 | 181 | pip install wait-for-it
|
203 | 182 | working-directory: ComfyUI
|
204 | 183 |
|
205 |
| - - name: Cache Playwright Browsers |
206 |
| - uses: actions/cache@v4 |
207 |
| - id: cache-playwright-browsers |
208 |
| - with: |
209 |
| - path: '~/.cache/ms-playwright' |
210 |
| - key: '${{ runner.os }}-playwright-browsers-${{ needs.setup.outputs.playwright-version }}' |
211 |
| - |
212 |
| - - name: Install Playwright Browsers |
213 |
| - if: steps.cache-playwright-browsers.outputs.cache-hit != 'true' |
214 |
| - run: pnpm exec playwright install chromium --with-deps |
215 |
| - working-directory: ComfyUI_frontend |
216 |
| - |
217 |
| - - name: Install Playwright Browsers (operating system dependencies) |
218 |
| - if: steps.cache-playwright-browsers.outputs.cache-hit == 'true' |
219 |
| - run: pnpm exec playwright install-deps |
220 |
| - working-directory: ComfyUI_frontend |
| 184 | + - name: Setup Playwright |
| 185 | + uses: ./ComfyUI_frontend/.github/actions/setup-playwright |
221 | 186 |
|
222 | 187 | - name: Start ComfyUI server
|
223 | 188 | run: |
|
|
0 commit comments