|
38 | 38 | NODE_OPTIONS: '--max-old-space-size=4096' |
39 | 39 | # Project name to use when running "docker compose" prior to e2e tests |
40 | 40 | COMPOSE_PROJECT_NAME: 'ci' |
41 | | - # Docker Registry to use for Docker compose scripts below. |
42 | | - # We use GitHub's Container Registry to avoid aggressive rate limits at DockerHub. |
43 | | - DOCKER_REGISTRY: ghcr.io |
| 41 | + # Docker images: uses upstream DSpace images from DockerHub (docker.io/dspace/*). |
| 42 | + # Upstream CI uses GHCR (ghcr.io) which requires authentication via GITHUB_TOKEN. |
| 43 | + # This fork uses the default DockerHub registry instead (no auth needed). |
| 44 | + # DOCKER_REGISTRY: ghcr.io |
44 | 45 | strategy: |
45 | 46 | # Create a matrix of Node versions to test against (in parallel) |
46 | 47 | matrix: |
@@ -112,21 +113,18 @@ jobs: |
112 | 113 | # Upload code coverage report to artifact (for one version of Node only), |
113 | 114 | # so that it can be shared with the 'codecov' job (see below) |
114 | 115 | # NOTE: Angular CLI only supports code coverage for specs. See https://github.com/angular/angular-cli/issues/6286 |
| 116 | + # NOTE: Coverage is disabled in CI due to Chrome OOM, so this step will be skipped |
115 | 117 | - name: Upload code coverage report to Artifact |
116 | 118 | uses: actions/upload-artifact@v4 |
117 | 119 | if: matrix.node-version == '18.x' |
118 | 120 | with: |
119 | 121 | name: coverage-report-${{ matrix.node-version }} |
120 | 122 | path: 'coverage/dspace-angular/lcov.info' |
| 123 | + if-no-files-found: ignore |
121 | 124 | retention-days: 14 |
122 | 125 |
|
123 | | - # Login to our Docker registry, so that we can access private Docker images using "docker compose" below. |
124 | | - - name: Login to ${{ env.DOCKER_REGISTRY }} |
125 | | - uses: docker/login-action@v3 |
126 | | - with: |
127 | | - registry: ${{ env.DOCKER_REGISTRY }} |
128 | | - username: ${{ github.repository_owner }} |
129 | | - password: ${{ secrets.GITHUB_TOKEN }} |
| 126 | + # DataShare fork: DockerHub images are public, no login needed. |
| 127 | + # Upstream uses GHCR login here, but those images are private to the DSpace org. |
130 | 128 |
|
131 | 129 | # Using "docker compose" start backend using CI configuration |
132 | 130 | # and load assetstore from a cached copy |
@@ -189,14 +187,14 @@ jobs: |
189 | 187 | done |
190 | 188 | echo "App started successfully." |
191 | 189 |
|
192 | | - # Get homepage and verify that the <meta name="title"> tag includes "DSpace". |
| 190 | + # Get homepage and verify that the <meta name="title"> tag includes "DataShare". |
193 | 191 | # If it does, then SSR is working, as this tag is created by our MetadataService. |
194 | 192 | # This step also prints entire HTML of homepage for easier debugging if grep fails. |
195 | 193 | - name: Verify SSR (server-side rendering) on Homepage |
196 | 194 | run: | |
197 | 195 | result=$(wget -O- -q http://127.0.0.1:4000/home) |
198 | 196 | echo "$result" |
199 | | - echo "$result" | grep -oE "<meta name=\"title\" [^>]*>" | grep DSpace |
| 197 | + echo "$result" | grep -oE "<meta name=\"title\" [^>]*>" | grep DataShare |
200 | 198 |
|
201 | 199 | # Get a specific community in our test data and verify that the "<h1>" tag includes "Publications" (the community name). |
202 | 200 | # If it does, then SSR is working. |
@@ -331,10 +329,10 @@ jobs: |
331 | 329 | uses: Wandalen/wretry.action@v1.3.0 |
332 | 330 | with: |
333 | 331 | action: codecov/codecov-action@v4 |
334 | | - # Ensure codecov-action throws an error when it fails to upload |
335 | | - # This allows us to auto-restart the action if an error is thrown |
| 332 | + # NOTE: fail_ci_if_error is false because coverage is currently disabled (Chrome OOM). |
| 333 | + # Change to true once coverage is re-enabled. |
336 | 334 | with: | |
337 | | - fail_ci_if_error: true |
| 335 | + fail_ci_if_error: false |
338 | 336 | token: ${{ secrets.CODECOV_TOKEN }} |
339 | 337 | # Try re-running action 5 times max |
340 | 338 | attempt_limit: 5 |
|
0 commit comments