|
25 | 25 | FRONTEND_FOLDER: /home/runner/work/opencollective-frontend/opencollective-frontend |
26 | 26 | API_FOLDER: /home/runner/work/opencollective-frontend/opencollective-frontend/opencollective-api |
27 | 27 | IMAGES_FOLDER: /home/runner/work/opencollective-frontend/opencollective-frontend/opencollective-images |
| 28 | + PDF_FOLDER: /home/runner/work/opencollective-frontend/opencollective-frontend/opencollective-pdf |
28 | 29 | TERM: xterm |
29 | 30 | CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
30 | 31 | STRIPE_WEBHOOK_KEY: ${{ secrets.STRIPE_WEBHOOK_KEY }} |
@@ -137,6 +138,12 @@ jobs: |
137 | 138 | repository: opencollective/opencollective-images |
138 | 139 | path: opencollective-images |
139 | 140 |
|
| 141 | + - name: Checkout (PDF) |
| 142 | + uses: actions/checkout@v3 |
| 143 | + with: |
| 144 | + repository: opencollective/opencollective-pdf |
| 145 | + path: opencollective-pdf |
| 146 | + |
140 | 147 | # Prepare API |
141 | 148 |
|
142 | 149 | - name: Restore node_modules (api) |
@@ -173,6 +180,24 @@ jobs: |
173 | 180 | working-directory: opencollective-images |
174 | 181 | run: npm run build |
175 | 182 |
|
| 183 | + # Prepare PDF |
| 184 | + |
| 185 | + - name: Restore node_modules (pdf) |
| 186 | + uses: actions/cache@v3 |
| 187 | + id: pdf-node-modules |
| 188 | + with: |
| 189 | + path: opencollective-pdf/node_modules |
| 190 | + key: ${{ runner.os }}-pdf-node-modules-${{ hashFiles('opencollective-pdf/package-lock.json') }} |
| 191 | + |
| 192 | + - name: Install dependencies (pdf) |
| 193 | + working-directory: opencollective-pdf |
| 194 | + if: steps.pdf-node-modules.outputs.cache-hit != 'true' |
| 195 | + run: npm ci --prefer-offline --no-audit |
| 196 | + |
| 197 | + - name: Build (pdf) |
| 198 | + working-directory: opencollective-pdf |
| 199 | + run: npm run build |
| 200 | + |
176 | 201 | # Prepare Frontend |
177 | 202 |
|
178 | 203 | - name: Restore node_modules (frontend) |
@@ -218,9 +243,13 @@ jobs: |
218 | 243 | if: steps.next-build.outputs.cache-hit != 'true' |
219 | 244 | run: npm run build |
220 | 245 |
|
| 246 | + # Seed DB |
| 247 | + |
221 | 248 | - name: Setup DB |
222 | 249 | run: ./scripts/setup_db.sh |
223 | 250 |
|
| 251 | + # Run tests |
| 252 | + |
224 | 253 | - name: Run E2E with Cypress |
225 | 254 | run: ./scripts/run_e2e_tests.sh |
226 | 255 | env: |
|
0 commit comments