@@ -11,7 +11,7 @@ concurrency:
11
11
cancel-in-progress : true
12
12
13
13
env :
14
- CARGO_INCREMENTAL : 1
14
+ CARGO_INCREMENTAL : 0
15
15
CARGO_NET_RETRY : 10
16
16
CONNECTORS : stripe
17
17
RUST_BACKTRACE : short
21
21
jobs :
22
22
runner :
23
23
name : Run Cypress tests
24
- runs-on : ubuntu-latest
24
+ runs-on : hyperswitch-runners
25
25
26
26
services :
27
27
redis :
53
53
if : ${{ env.SKIP_STEP }}
54
54
run : echo 'Skipping tests for PRs from forks'
55
55
56
- - name : Repository checkout
56
+ - name : Checkout repository
57
57
uses : actions/checkout@v4
58
58
59
59
- name : Download Encrypted TOML from S3 and Decrypt
68
68
S3_SOURCE_FILE_NAME : " f64157fe-a8f7-43a8-a268-b17e9a8c305f.json.gpg"
69
69
shell : bash
70
70
run : |
71
-
72
71
mkdir -p ".github/secrets" ".github/test"
73
72
74
73
aws s3 cp "${CONNECTOR_CREDS_S3_BUCKET_URI}/${S3_SOURCE_FILE_NAME}" ".github/secrets/${DESTINATION_FILE_NAME}"
@@ -88,35 +87,52 @@ jobs:
88
87
LOCAL_ADMIN_API_KEY=$(yq '.secrets.admin_api_key' ${TOML_PATH})
89
88
echo "CYPRESS_ADMINAPIKEY=${LOCAL_ADMIN_API_KEY}" >> $GITHUB_ENV
90
89
90
+ - name : Install mold linker
91
+ uses : rui314/setup-mold@v1
92
+ if : ${{ runner.os == 'Linux' && !env.SKIP_STEP }}
93
+ with :
94
+ make-default : true
95
+
91
96
- name : Install Rust
92
97
if : ${{ !env.SKIP_STEP }}
93
98
uses : dtolnay/rust-toolchain@master
94
99
with :
95
100
toolchain : stable 2 weeks ago
101
+ components : clippy
102
+
103
+ - name : Install sccache
104
+ if : ${{ !env.SKIP_STEP }}
105
+
106
+ with :
107
+ tool : sccache
108
+ checksum : true
96
109
97
- - name : Cache Rust Dependencies
110
+ - name : Install cargo-nextest
98
111
if : ${{ !env.SKIP_STEP }}
99
-
112
+
113
+ with :
114
+ tool : cargo-nextest
115
+ checksum : true
100
116
101
117
- name : Install Diesel CLI
102
118
if : ${{ !env.SKIP_STEP }}
103
- uses : baptiste0928/cargo-install@v2.2.0
119
+ uses : baptiste0928/cargo-install@v3.1.1
104
120
with :
105
121
crate : diesel_cli
106
122
features : postgres
107
- args : " --no-default-features"
123
+ args : --no-default-features
124
+
125
+ - name : Install Just
126
+ uses :
baptiste0928/[email protected]
127
+ with :
128
+ crate : just
108
129
109
130
- name : Diesel migration run
110
131
if : ${{ !env.SKIP_STEP }}
111
132
shell : bash
112
133
env :
113
134
DATABASE_URL : postgres://db_user:db_pass@localhost:5432/hyperswitch_db
114
- run : make migrate locked-schema=yes
115
-
116
- - name : Install Cypress
117
- run : |
118
- cd cypress-tests
119
- npm install
135
+ run : just migrate run --locked-schema
120
136
121
137
- name : Build project
122
138
if : ${{ !env.SKIP_STEP }}
@@ -176,4 +192,4 @@ jobs:
176
192
with :
177
193
name : cypress-test-results
178
194
path : ./cypress-tests/cypress/screenshots/
179
- retention-days : 1
195
+ retention-days : 1
0 commit comments