Skip to content

Commit 33afcee

Browse files
committed
update
1 parent 0745f68 commit 33afcee

File tree

1 file changed

+31
-15
lines changed

1 file changed

+31
-15
lines changed

.github/workflows/cypress-tests-runner.yml

Lines changed: 31 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ concurrency:
1111
cancel-in-progress: true
1212

1313
env:
14-
CARGO_INCREMENTAL: 1
14+
CARGO_INCREMENTAL: 0
1515
CARGO_NET_RETRY: 10
1616
CONNECTORS: stripe
1717
RUST_BACKTRACE: short
@@ -21,7 +21,7 @@ env:
2121
jobs:
2222
runner:
2323
name: Run Cypress tests
24-
runs-on: ubuntu-latest
24+
runs-on: hyperswitch-runners
2525

2626
services:
2727
redis:
@@ -53,7 +53,7 @@ jobs:
5353
if: ${{ env.SKIP_STEP }}
5454
run: echo 'Skipping tests for PRs from forks'
5555

56-
- name: Repository checkout
56+
- name: Checkout repository
5757
uses: actions/checkout@v4
5858

5959
- name: Download Encrypted TOML from S3 and Decrypt
@@ -68,7 +68,6 @@ jobs:
6868
S3_SOURCE_FILE_NAME: "f64157fe-a8f7-43a8-a268-b17e9a8c305f.json.gpg"
6969
shell: bash
7070
run: |
71-
7271
mkdir -p ".github/secrets" ".github/test"
7372
7473
aws s3 cp "${CONNECTOR_CREDS_S3_BUCKET_URI}/${S3_SOURCE_FILE_NAME}" ".github/secrets/${DESTINATION_FILE_NAME}"
@@ -88,35 +87,52 @@ jobs:
8887
LOCAL_ADMIN_API_KEY=$(yq '.secrets.admin_api_key' ${TOML_PATH})
8988
echo "CYPRESS_ADMINAPIKEY=${LOCAL_ADMIN_API_KEY}" >> $GITHUB_ENV
9089
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+
9196
- name: Install Rust
9297
if: ${{ !env.SKIP_STEP }}
9398
uses: dtolnay/rust-toolchain@master
9499
with:
95100
toolchain: stable 2 weeks ago
101+
components: clippy
102+
103+
- name: Install sccache
104+
if: ${{ !env.SKIP_STEP }}
105+
uses: taiki-e/[email protected]
106+
with:
107+
tool: sccache
108+
checksum: true
96109

97-
- name: Cache Rust Dependencies
110+
- name: Install cargo-nextest
98111
if: ${{ !env.SKIP_STEP }}
99-
uses: Swatinem/[email protected]
112+
uses: taiki-e/[email protected]
113+
with:
114+
tool: cargo-nextest
115+
checksum: true
100116

101117
- name: Install Diesel CLI
102118
if: ${{ !env.SKIP_STEP }}
103-
uses: baptiste0928/cargo-install@v2.2.0
119+
uses: baptiste0928/cargo-install@v3.1.1
104120
with:
105121
crate: diesel_cli
106122
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
108129

109130
- name: Diesel migration run
110131
if: ${{ !env.SKIP_STEP }}
111132
shell: bash
112133
env:
113134
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
120136

121137
- name: Build project
122138
if: ${{ !env.SKIP_STEP }}
@@ -176,4 +192,4 @@ jobs:
176192
with:
177193
name: cypress-test-results
178194
path: ./cypress-tests/cypress/screenshots/
179-
retention-days: 1
195+
retention-days: 1

0 commit comments

Comments
 (0)