-
Notifications
You must be signed in to change notification settings - Fork 597
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into nav-unit-testing
- Loading branch information
Showing
15 changed files
with
125 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Jasmine Testing | ||
|
||
on: | ||
push: | ||
branches: [ "develop" ] | ||
pull_request: | ||
branches: [ "master", "develop" ] | ||
types: [synchronize] | ||
|
||
jobs: | ||
run-jasmine-tests: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./nav-app/ | ||
strategy: | ||
matrix: | ||
node-version: [16.x] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
cache-dependency-path: nav-app/package-lock.json | ||
- name: Install | ||
run: npm ci | ||
- name: Run Jasmine tests | ||
run: npm run test -- --code-coverage --no-watch --browsers ChromeHeadlessCI | ||
- name: Archive code coverage results | ||
uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: code-coverage-report | ||
path: nav-app/coverage/chrome/index.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,22 +6,13 @@ ENV NODE_OPTIONS=--openssl-legacy-provider | |
|
||
# install node packages - cache for faster future builds | ||
WORKDIR /src/nav-app | ||
COPY nav-app/package*.json nav-app/patch-webpack.js . | ||
# install packages and build | ||
RUN npm install --unsafe-perm --legacy-peer-deps | ||
|
||
# NOTE on legacy-peer-deps: | ||
# The --legacy-peer-deps flags is included to bypass the dependency peer resolution conflict that arises between Angular | ||
# and @angular-devkit/[email protected], the latter of which has peerDependency: karma: '~5.1.0'. However, | ||
# upgrading karma to 5.1.0 cascades into a litany of other dependency conflicts, which would ultimately require us to | ||
# upgrade from Angular v11 to v12. Therefore, legacy-peer-deps will be allowed until a major framework upgrade can occur | ||
COPY ./nav-app/package*.json ./ | ||
|
||
# give user permissions | ||
RUN chown -R node:node ./ | ||
# install packages and build | ||
RUN npm install | ||
|
||
# copy over needed files | ||
USER node | ||
COPY nav-app/ ./ | ||
COPY ./nav-app/ ./ | ||
|
||
WORKDIR /src | ||
COPY layers/*.md ./layers/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.