Skip to content

Commit aad77a1

Browse files
authored
Merge pull request #1828 from AletheiaFact/fix/github-actions-cypress
Fix GitHub ACtions pipeline: ensure Cypress component tests run correctly
2 parents b945f51 + c044e77 commit aad77a1

File tree

5 files changed

+26
-12
lines changed

5 files changed

+26
-12
lines changed

.github/workflows/aws.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
TAG: ${{ github.sha}}
5555
steps:
5656
- name: Checkout
57-
uses: actions/checkout@v4
57+
uses: actions/checkout@v2
5858

5959
- name: Configure AWS credentials
6060
uses: aws-actions/configure-aws-credentials@v1
@@ -119,7 +119,7 @@ jobs:
119119
TAG: ${{ github.sha}}
120120
steps:
121121
- name: Checkout
122-
uses: actions/checkout@v4
122+
uses: actions/checkout@v2
123123

124124
- name: Install pkl
125125
uses: pkl-community/setup-pkl@v0

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939

4040
steps:
4141
- name: Checkout repository
42-
uses: actions/checkout@v4
42+
uses: actions/checkout@v2
4343

4444
# Initializes the CodeQL tools for scanning.
4545
- name: Initialize CodeQL

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@v2
2222

2323
- name: Use Node.js ${{ matrix.node-version }}
2424
uses: actions/setup-node@v4

.github/workflows/nodejs.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
node-version: [18.19.1]
3535
steps:
3636
- name: Checkout
37-
uses: actions/checkout@v4
37+
uses: actions/checkout@v2
3838
- name: Test docker image build before merge
3939
run: |
4040
docker build --build-arg ENVIRONMENT=development \
@@ -46,7 +46,7 @@ jobs:
4646
matrix:
4747
node-version: [18.19.1]
4848
steps:
49-
- uses: actions/checkout@v4
49+
- uses: actions/checkout@v2
5050
- name: Use Node.js ${{ matrix.node-version }}
5151
uses: actions/setup-node@v4
5252
with:
@@ -66,7 +66,7 @@ jobs:
6666
node-version: [18.19.1]
6767
steps:
6868
- name: Checkout
69-
uses: actions/checkout@v4
69+
uses: actions/checkout@v2
7070
- uses: actions/download-artifact@v4
7171
with:
7272
name: aletheia-dist
@@ -93,7 +93,7 @@ jobs:
9393
runs-on: ubuntu-22.04
9494
steps:
9595
- name: Checkout
96-
uses: actions/checkout@v4
96+
uses: actions/checkout@v2
9797
- uses: actions/download-artifact@v4
9898
with:
9999
name: aletheia-dist
@@ -110,5 +110,22 @@ jobs:
110110
wait-on: "http://localhost:3000"
111111
env:
112112
CI: true
113+
cypress-run-component:
114+
needs: build
115+
runs-on: ubuntu-22.04
116+
steps:
117+
- name: Checkout
118+
uses: actions/checkout@v2
119+
- uses: actions/download-artifact@v4
120+
with:
121+
name: aletheia-dist
122+
path: dist
123+
- run: |
124+
echo '{"CI_ORY_USER_PASSWORD": "${{ env.CI_ORY_USER_PASSWORD }}"}' > ./cypress.env.json
125+
yarn install
126+
- run: cp config/localConfig.example.ts config/localConfig.ts
127+
- run: yarn build
113128
- name: Run Cypress Component Tests
114-
- run: yarn cypress run --component
129+
run: yarn cypress run --component
130+
env:
131+
CI: true

src/components/BackButton.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ function BackButton({
1717
const router = useRouter();
1818
const pathname = router?.pathname || "";
1919

20-
console.log("pthname:", pathname);
21-
console.log("isVisible:", isVisible);
22-
2320
if (pathname !== "/" && pathname !== "/home-page" && isVisible) {
2421
return (
2522
<a

0 commit comments

Comments
 (0)