Skip to content

Commit 018d591

Browse files
authored
adding build for cypress test (#2302)
1 parent 954284d commit 018d591

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

.github/actions/cypress/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ runs:
3131
if: github.event_name != 'workflow_run'
3232
uses: actions/download-artifact@fb598a63ae348fa914e94cd0ff38f362e927b741 # v3.0.0
3333
with:
34-
name: out
34+
name: out_cypress
3535
path: out
3636

3737
- name: Download static build
@@ -41,7 +41,7 @@ runs:
4141
workflow: build-fork.yml
4242
run_id: ${{ github.event.workflow_run.id }}
4343
workflow_conclusion: success
44-
name: out
44+
name: out_cypress
4545
path: out
4646

4747
- name: test

.github/workflows/build-test-deploy-dev.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ jobs:
1515
(github.event_name == 'push' && github.event_name == 'pull_request') ||
1616
(github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name &&
1717
!contains(github.head_ref, 'dependabot'))
18+
strategy:
19+
matrix:
20+
build:
21+
- name: 'out'
22+
cypress_enabled: 'false'
23+
- name: 'out_cypress'
24+
cypress_enabled: 'true'
1825
steps:
1926
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
2027
with:
@@ -31,12 +38,12 @@ jobs:
3138
NEXT_PUBLIC_FIAT_ON_RAMP: 'false'
3239
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: ${{ secrets.WALLET_CONNECT_PROJECT_ID }}
3340
NEXT_PUBLIC_SUBGRAPH_API_KEY: ${{ secrets.NEXT_PUBLIC_SUBGRAPH_API_KEY }}
34-
NEXT_PUBLIC_IS_CYPRESS_ENABLED: 'true'
41+
NEXT_PUBLIC_IS_CYPRESS_ENABLED: ${{ matrix.build.cypress_enabled }}
3542

3643
- name: Upload artifacts
3744
uses: ./.github/actions/upload-artifacts
3845
with:
39-
BUILD_ARTIFACT_NAME: 'out'
46+
BUILD_ARTIFACT_NAME: ${{ matrix.build.name }}
4047

4148
cypress_smoke_v2:
4249
runs-on: ubuntu-latest

.github/workflows/build-test-deploy.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ jobs:
1515
(github.event_name == 'push' && github.ref == 'refs/heads/main') ||
1616
(github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name &&
1717
!contains(github.head_ref, 'dependabot'))
18+
strategy:
19+
matrix:
20+
build:
21+
- name: 'out'
22+
cypress_enabled: 'false'
23+
- name: 'out_cypress'
24+
cypress_enabled: 'true'
1825
steps:
1926
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
2027
with:
@@ -31,12 +38,12 @@ jobs:
3138
NEXT_PUBLIC_FIAT_ON_RAMP: 'false'
3239
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: ${{ secrets.WALLET_CONNECT_PROJECT_ID }}
3340
NEXT_PUBLIC_SUBGRAPH_API_KEY: ${{ secrets.NEXT_PUBLIC_SUBGRAPH_API_KEY }}
34-
NEXT_PUBLIC_IS_CYPRESS_ENABLED: 'false'
41+
NEXT_PUBLIC_IS_CYPRESS_ENABLED: ${{ matrix.build.cypress_enabled }}
3542

3643
- name: Upload artifacts
3744
uses: ./.github/actions/upload-artifacts
3845
with:
39-
BUILD_ARTIFACT_NAME: 'out'
46+
BUILD_ARTIFACT_NAME: ${{ matrix.build.name }}
4047

4148
build_staging:
4249
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)