-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (47 loc) · 1.36 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
48
49
50
51
52
53
54
55
name: E2E
on:
push:
branches: [ main ]
paths-ignore:
- '**/README.md'
- README.md
- .gitignore
- .gitpod.yml
- LICENSE
pull_request:
branches: [ main ]
paths-ignore:
- '**/README.md'
- README.md
- .gitignore
- .gitpod.yml
- LICENSE
jobs:
e2e:
runs-on: ubuntu-latest
name: E2E run
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Install Node dependencies
run: npm install
working-directory: react-app
- name: Run frontend
run: nohup npm start &
working-directory: react-app
- name: Setup java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Run backend
run: nohup mvn spring-boot:run &
env:
ADYEN_LEM_API_KEY: ${{ secrets.ADYEN_LEM_API_KEY }}
ADYEN_BCL_API_KEY: ${{ secrets.ADYEN_LEM_API_KEY }}
- name: Run testing suite
run: docker run --rm --name adyen-testing-suite -e PLAYWRIGHT_FOLDERNAME=afp -e URL=http://localhost:3000 -e AFP_USERNAME=${{ secrets.AFP_USERNAME }} -e ADYEN_HMAC_KEY=${{ secrets.ADYEN_HMAC_KEY }} --network host ghcr.io/adyen-examples/adyen-testing-suite:main