@@ -7,8 +7,8 @@ name: Build
77on : [push, pull_request]
88
99permissions :
10- contents : read # to fetch code (actions/checkout)
11- packages : read # to fetch private images from GitHub Container Registry (GHCR)
10+ contents : read # to fetch code (actions/checkout)
11+ packages : read # to fetch private images from GitHub Container Registry (GHCR)
1212
1313jobs :
1414 tests :
1919 # NOTE: These settings should be kept in sync with those in [src]/docker/docker-compose-ci.yml
2020 DSPACE_REST_HOST : 127.0.0.1
2121 DSPACE_REST_PORT : 8080
22- DSPACE_REST_NAMESPACE : ' /server'
22+ DSPACE_REST_NAMESPACE : " /server"
2323 DSPACE_REST_SSL : false
2424 # Spin up UI on 127.0.0.1 to avoid host resolution issues in e2e tests with Node 20+
2525 DSPACE_UI_HOST : 127.0.0.1
3535 # Comment this out to use the latest release
3636 # CHROME_VERSION: "116.0.5845.187-1"
3737 # Bump Node heap size (OOM in CI after upgrading to Angular 15)
38- NODE_OPTIONS : ' --max-old-space-size=4096'
38+ NODE_OPTIONS : " --max-old-space-size=4096"
3939 # Project name to use when running "docker compose" prior to e2e tests
40- COMPOSE_PROJECT_NAME : ' ci '
40+ COMPOSE_PROJECT_NAME : " ci "
4141 # Docker Registry to use for Docker compose scripts below.
4242 # We use GitHub's Container Registry to avoid aggressive rate limits at DockerHub.
4343 DOCKER_REGISTRY : ghcr.io
@@ -117,7 +117,7 @@ jobs:
117117 if : matrix.node-version == '20.x'
118118 with :
119119 name : coverage-report-${{ matrix.node-version }}
120- path : ' coverage/dspace-angular/lcov.info'
120+ path : " coverage/dspace-angular/lcov.info"
121121 retention-days : 14
122122
123123 # Login to our Docker registry, so that we can access private Docker images using "docker compose" below.
@@ -142,6 +142,7 @@ jobs:
142142 - name : Run e2e tests (integration tests)
143143 uses : cypress-io/github-action@v6
144144 with :
145+ install-command : npm ci
145146 # Run tests in Chrome, headless mode (default)
146147 browser : chrome
147148 # Start app before running tests (will be stopped automatically after tests finish)
@@ -234,9 +235,9 @@ jobs:
234235 # the name of the project. If it does, then SSR is working.
235236 - name : Verify SSR on a Project page
236237 run : |
237- result=$(wget -O- -q http://127.0.0.1:4000/entities/project/1e3451e4-60d7-46a8-962e-5b94b62c63ff )
238+ result=$(wget -O- -q http://127.0.0.1:4000/entities/project/28f8f49a-1aaf-4acc-93a9-203f3cf7ba62 )
238239 echo "$result"
239- echo "$result" | grep -oE "<meta name=\"title\" [^>]*>" | grep "Test DSC-1819 "
240+ echo "$result" | grep -oE "<meta name=\"title\" [^>]*>" | grep "TEST PROJECT "
240241
241242 # Get a specific orgunit in our test data and verify that the <meta name="title"> tag includes
242243 # the name of the orgunit. If it does, then SSR is working.
@@ -262,7 +263,6 @@ jobs:
262263 echo "$result"
263264 echo "$result" | grep -oE "<meta name=\"title\" [^>]*>" | grep "test funding"
264265
265-
266266 # Verify 301 Handle redirect behavior
267267 # Note: /handle/123456789/260 is the same test Publication used by our e2e tests
268268 - name : Verify 301 redirect from '/handle' URLs
0 commit comments