|
19 | 19 | - 'frontend/src/assets/i18n/*.json' |
20 | 20 | env: |
21 | 21 | NODE_DEFAULT_VERSION: 20 |
22 | | - ANGULAR_CLI_VERSION: 17 |
23 | 22 | CYCLONEDX_NPM_VERSION: '^1.12.0' |
| 23 | + NODE_OPTIONS: "--max_old_space_size=4096" |
24 | 24 | jobs: |
25 | 25 | lint: |
26 | 26 | runs-on: ubuntu-latest |
|
31 | 31 | uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af #v4.1.0 |
32 | 32 | with: |
33 | 33 | node-version: ${{ env.NODE_DEFAULT_VERSION }} |
34 | | - - name: "Install CLI tools" |
35 | | - run: npm install -g @angular/cli@$ANGULAR_CLI_VERSION |
36 | 34 | - name: "Install application minimalistically" |
37 | 35 | run: | |
38 | 36 | npm install --ignore-scripts |
|
63 | 61 | uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af #v4.1.0 |
64 | 62 | with: |
65 | 63 | node-version: ${{ env.NODE_DEFAULT_VERSION }} |
66 | | - - name: "Install CLI tools" |
67 | | - run: npm install -g @angular/cli@$ANGULAR_CLI_VERSION |
68 | 64 | - name: "Install application" |
69 | 65 | run: npm install |
70 | 66 | - name: "Check coding challenges for accidental code discrepancies" |
|
84 | 80 | uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af #v4.1.0 |
85 | 81 | with: |
86 | 82 | node-version: ${{ matrix.node-version }} |
87 | | - - name: "Install CLI tools" |
88 | | - if: github.repository == 'juice-shop/juice-shop' || (github.repository != 'juice-shop/juice-shop' && matrix.os == 'ubuntu-latest' && matrix.node-version == '20') |
89 | | - run: npm install -g @angular/cli@$ANGULAR_CLI_VERSION |
90 | 83 | - name: "Install application" |
91 | 84 | if: github.repository == 'juice-shop/juice-shop' || (github.repository != 'juice-shop/juice-shop' && matrix.os == 'ubuntu-latest' && matrix.node-version == '20') |
92 | 85 | run: npm install |
@@ -124,9 +117,6 @@ jobs: |
124 | 117 | uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af #v4.1.0 |
125 | 118 | with: |
126 | 119 | node-version: ${{ matrix.node-version }} |
127 | | - - name: "Install CLI tools" |
128 | | - if: github.repository == 'juice-shop/juice-shop' || (github.repository != 'juice-shop/juice-shop' && matrix.os == 'ubuntu-latest' && matrix.node-version == '20') |
129 | | - run: npm install -g @angular/cli@$ANGULAR_CLI_VERSION |
130 | 120 | - name: "Install application" |
131 | 121 | if: github.repository == 'juice-shop/juice-shop' || (github.repository != 'juice-shop/juice-shop' && matrix.os == 'ubuntu-latest' && matrix.node-version == '20') |
132 | 122 | run: npm install |
@@ -185,8 +175,6 @@ jobs: |
185 | 175 | uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af #v4.1.0 |
186 | 176 | with: |
187 | 177 | node-version: ${{ env.NODE_DEFAULT_VERSION }} |
188 | | - - name: "Install CLI tools" |
189 | | - run: npm install -g @angular/cli@$ANGULAR_CLI_VERSION |
190 | 178 | - name: "Install application" |
191 | 179 | if: github.repository == 'juice-shop/juice-shop' || (github.repository != 'juice-shop/juice-shop' && matrix.os == 'ubuntu-latest' && matrix.node-version == '20') |
192 | 180 | run: npm install |
@@ -264,7 +252,6 @@ jobs: |
264 | 252 | node-version: ${{ env.NODE_DEFAULT_VERSION }} |
265 | 253 | - name: "Install CLI tools" |
266 | 254 | run: | |
267 | | - npm install -g @angular/cli@$ANGULAR_CLI_VERSION |
268 | 255 | npm install -g @cyclonedx/cyclonedx-npm@$CYCLONEDX_NPM_VERSION |
269 | 256 | npm install -g grunt-cli |
270 | 257 | - name: "Set packaging options for Grunt" |
@@ -333,15 +320,15 @@ jobs: |
333 | 320 | BUILD_DATE=${{ env.BUILD_DATE }} |
334 | 321 | CYCLONEDX_NPM_VERSION=${{ env.CYCLONEDX_NPM_VERSION }} |
335 | 322 | heroku: |
336 | | - if: github.repository == 'juice-shop/juice-shop' && github.event_name == 'push' && (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master') |
| 323 | + if: github.repository == 'juice-shop/juice-shop' && github.event_name == 'push' && (github.ref == 'refs/heads/angular17' || github.ref == 'refs/heads/master') # TODO Switch angular17 back to develop after merge |
337 | 324 | needs: [test, api-test, e2e, custom-config-test] |
338 | 325 | runs-on: ubuntu-latest |
339 | 326 | steps: |
340 | 327 | - name: "Check out Git repository" |
341 | 328 | uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2 |
342 | 329 | - name: "Install Heroku CLI" |
343 | 330 | run: curl https://cli-assets.heroku.com/install.sh | sh |
344 | | - - name: "Set Heroku app & branch for ${{ github.ref }}" |
| 331 | + - name: "Set Heroku app & branch for ${{ github.ref }}" # TODO Switch angular17 back to develop after merge |
345 | 332 | run: | |
346 | 333 | if [ "$GITHUB_REF" == "refs/heads/master" ]; then |
347 | 334 | echo "HEROKU_APP=juice-shop" >> $GITHUB_ENV |
|
0 commit comments