-
Notifications
You must be signed in to change notification settings - Fork 65
57 lines (49 loc) · 1.72 KB
/
run-automation-test.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
56
57
name: Run Cypress Tests
on:
push:
branches:
- swamu/526-web-testing-automation
# pull_request:
# branches:
# - main
jobs:
cypress:
runs-on: ubuntu-latest
environment: Testing
env:
Pub_Key: ${{ secrets.HYPERSWITCH_PUBLISHABLE_KEY }}
Sec_Key: ${{ secrets.HYPERSWITCH_SECRET_KEY }}
Prof_Id: ${{ secrets.PROFILE_ID }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
# - name: Set up Node.js
# uses: actions/setup-node@v3
# with:
# node-version: "20" # Specify your Node.js version
# cache: "npm"
# - name: Install dependencies
# run: npm install && npm run postinstall
#
# - name: Create .env file
# working-directory: ./Hyperswitch-React-Demo-App
# run: |
# touch .env
# echo STATIC_DIR = ./dist >> .env
# echo HYPERSWITCH_PUBLISHABLE_KEY = $Pub_Key >> .env
# echo HYPERSWITCH_SECRET_KEY = $Sec_Key >> .env
# echo PROFILE_ID = $Prof_Id >> .env
# echo HYPERSWITCH_SERVER_URL = "https://sandbox.hyperswitch.io" >> .env
# echo HYPERSWITCH_CLIENT_URL = "http://localhost:9050" >> .env
# cat .env
- name: Create .env file
working-directory: ./Hyperswitch-React-Demo-App
run: echo "My HYPERSWITCH_PUBLISHABLE_KEY is $Pub_Key"
# - name: Build and start local server
# run: npm run re:build && npm start &
# echo "Hyperswitch Web started" && cd Hyperswitch-React-Demo-App && npm start &
# echo "Demo App started started"
# - name: Run Cypress
# uses: cypress-io/github-action@v6
# with:
# working-directory: ./cypress-tests