-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into dependabot/npm_and_yarn/tar-7.4.0
- Loading branch information
Showing
14 changed files
with
12,277 additions
and
7,348 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
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Karma Jasmine Tests | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
jasmine: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- uses: browser-actions/setup-chrome@v1 | ||
with: | ||
chrome-version: stable | ||
install-dependencies: true | ||
install-chromedriver: true | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 16.17.1 | ||
- name: Install packages | ||
run: npm install | ||
- name: Run | ||
run: npm run ng test |
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 |
---|---|---|
@@ -1,7 +1,10 @@ | ||
FROM node:10.14.0-jessie | ||
FROM node:16.17.1-buster | ||
|
||
RUN mkdir /palladium-view | ||
WORKDIR /palladium-view | ||
COPY . /palladium-view | ||
WORKDIR /palladium-view | ||
|
||
RUN npm install | ||
RUN npm run build | ||
CMD bash wait_for_volume.sh | ||
|
||
CMD ["bash", "wait_for_volume.sh"] |
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
FROM node:8.1.4 | ||
FROM node:16.17.1-buster | ||
|
||
RUN mkdir /palladium-view | ||
COPY . /palladium-view | ||
WORKDIR /palladium-view | ||
ADD . /palladium-view | ||
RUN npm install -g @angular/cli --unsafe-perm && npm i | ||
RUN ng build --prod --aot false | ||
|
||
RUN npm install -g @angular/cli --unsafe-perm && npm install | ||
|
||
ENTRYPOINT ["ng"] | ||
CMD ["build", "--prod", "--aot=false"] |
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#!/usr/bin/env bash | ||
docker build -t palladium_view_builder . | ||
docker run -itd --rm --name palladium_view_builder palladium_view_builder /bin/bash | ||
docker cp palladium_view_builder:/palladium-view/dist/ dist | ||
docker cp palladium_view_builder:/palladium-view/dist ./ | ||
docker stop palladium_view_builder | ||
|
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,59 @@ | ||
const { Server } = require("karma"); | ||
|
||
module.exports = function (config) { | ||
config.set({ | ||
basePath: "", | ||
frameworks: ["jasmine", "@angular-devkit/build-angular"], | ||
plugins: [ | ||
require("karma-jasmine"), | ||
require("karma-chrome-launcher"), | ||
require("karma-jasmine-html-reporter"), | ||
require("karma-coverage-istanbul-reporter"), | ||
require("@angular-devkit/build-angular/plugins/karma"), | ||
], | ||
client: { | ||
clearContext: false, // leave Jasmine Spec Runner output visible in browser | ||
}, | ||
coverageIstanbulReporter: { | ||
dir: require("path").join(__dirname, "./coverage/palladium"), | ||
reports: ["html", "lcovonly", "text-summary"], | ||
fixWebpackSourcePaths: true, | ||
}, | ||
reporters: ["progress", "kjhtml"], | ||
port: 9876, | ||
colors: true, | ||
logLevel: config.LOG_INFO, | ||
autoWatch: true, | ||
browsers: ["Chrome"], | ||
singleRun: true, | ||
customLaunchers: { | ||
ChromeHeadlessCustom: { | ||
base: "ChromeHeadless", | ||
flags: [ | ||
"--disable-gpu", // Disable hardware acceleration | ||
"--no-sandbox", // Needed when running as root user in Docker | ||
"--headless", | ||
"--disable-dev-shm-usage", // Fixes issues with Docker memory limitations | ||
"--disable-setuid-sandbox", // not recommended for security reasons but sometimes necessary | ||
], | ||
}, | ||
}, | ||
browsers: ['ChromeHeadlessCustom'], | ||
restartOnFileChange: true, | ||
files: [ | ||
{ | ||
pattern: "src/**/*.spec.ts", | ||
watched: true, | ||
included: false, | ||
served: false, | ||
}, | ||
], | ||
httpsServerOptions: { // disable SSL certificate checks | ||
key: '', | ||
cert: '', | ||
ca: '', | ||
requestCert: false, | ||
rejectUnauthorized: false | ||
} | ||
}); | ||
}; |
Oops, something went wrong.