-
Notifications
You must be signed in to change notification settings - Fork 135
47 lines (45 loc) · 1.55 KB
/
e2e.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: E2E for Checkout Components
on:
pull_request:
workflow_dispatch:
jobs:
build-then-e2e:
if: ${{ github.actor != 'renovate[bot]' && github.actor != 'lgtm-com[bot]' }}
timeout-minutes: 60
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [20.12.2]
api-version: ["v69", "v70", "v71"]
# node-version: [16.x, 18.x, 19.x]
# Currently 18 and 19 are not supported, still keeping it
# as a reminder for compatibility check
env:
CHECKOUT_API_KEY: ${{secrets.ADYEN_CHECKOUT_API_KEY}}
MERCHANT_ACCOUNT: ${{secrets.ADYEN_CHECKOUT_MERCHANT_ACCOUNT}}
CLIENT_KEY: ${{secrets.ADYEN_CHECKOUT_CLIENT_KEY}}
CLIENT_ENV: test
TESTING_ENVIRONMENT: https://checkout-test.adyen.com/checkout/${{matrix.api-version}}
API_VERSION: ${{matrix.api-version}}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install Project Dependencies
run: yarn install
- name: Install Playwright Dependencies
working-directory: packages/e2e-playwright/
run: yarn install && npx playwright install --with-deps
- name: Run E2E Tests
run: yarn test:e2e
- name: Archive test result artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: playwright-report-${{matrix.api-version}}-${{ github.sha }}
path: packages/e2e-playwright/playwright-report
retention-days: 5