Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GitHub ACtions pipeline: ensure Cypress component tests run correctly #1828

Merged
merged 4 commits into from
Feb 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
TAG: ${{ github.sha}}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v2

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:
TAG: ${{ github.sha}}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v2

- name: Install pkl
uses: pkl-community/setup-pkl@v0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
Expand Down
27 changes: 22 additions & 5 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
node-version: [18.19.1]
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v2
- name: Test docker image build before merge
run: |
docker build --build-arg ENVIRONMENT=development \
Expand All @@ -46,7 +46,7 @@ jobs:
matrix:
node-version: [18.19.1]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
Expand All @@ -66,7 +66,7 @@ jobs:
node-version: [18.19.1]
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v2
- uses: actions/download-artifact@v4
with:
name: aletheia-dist
Expand All @@ -93,7 +93,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v2
- uses: actions/download-artifact@v4
with:
name: aletheia-dist
Expand All @@ -110,5 +110,22 @@ jobs:
wait-on: "http://localhost:3000"
env:
CI: true
cypress-run-component:
needs: build
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/download-artifact@v4
with:
name: aletheia-dist
path: dist
- run: |
echo '{"CI_ORY_USER_PASSWORD": "${{ env.CI_ORY_USER_PASSWORD }}"}' > ./cypress.env.json
yarn install
- run: cp config/localConfig.example.ts config/localConfig.ts
- run: yarn build
- name: Run Cypress Component Tests
- run: yarn cypress run --component
run: yarn cypress run --component
env:
CI: true
3 changes: 0 additions & 3 deletions src/components/BackButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ function BackButton({
const router = useRouter();
const pathname = router?.pathname || "";

console.log("pthname:", pathname);
console.log("isVisible:", isVisible);

if (pathname !== "/" && pathname !== "/home-page" && isVisible) {
return (
<a
Expand Down
Loading