Skip to content

Commit

Permalink
fix: restore pipelines to their former glory
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelsc committed Feb 3, 2025
1 parent 3e3942f commit c91ec8a
Show file tree
Hide file tree
Showing 12 changed files with 5,641 additions and 4,773 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,32 @@ jobs:
matrix:
node-version: [18.x]
steps:

- name: Check out code
uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Dependency install
run: |
npm install @ionic/cli@6.20.4 native-run@1.3.0
npm install
npm install @ionic/cli@6.20.4 native-run@1.3.0
npm install
- name: Build Storage Mirror
run: |
cd storage-mirror
npm install
npm run build
- name: Copy environment.ts to environment.prod.ts
run: |
cp src/environments/environment.ts src/environments/environment.prod.ts
- name: Build
run: |
./node_modules/@ionic/cli/bin/ionic build --prod --release
#- name: Test
# run: ./node_modules/@angular/cli/bin/ng test
7 changes: 6 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"sourceMap": {
"scripts": true,
"styles": false,
"hidden": true,
"hidden": true,
"vendor": false
},
"namedChunks": false,
Expand Down Expand Up @@ -115,6 +115,11 @@
"glob": "**/*",
"input": "src/assets",
"output": "/assets"
},
{
"glob": "**/*.svg",
"input": "node_modules/ionicons/dist/ionicons/svg",
"output": "./svg"
}
]
},
Expand Down
42 changes: 19 additions & 23 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
process.env.CHROME_BIN = require('puppeteer').executablePath()

module.exports = function (config) {
config.set({
Expand All @@ -20,39 +19,36 @@ module.exports = function (config) {
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage-istanbul-reporter'),
require('karma-coverage'),
require('@angular-devkit/build-angular/plugins/karma')
],
client: {
clearContext: false, // leave Jasmine Spec Runner output visible in browser
jasmine: {
random: false,
}
// you can add configuration options for Jasmine here
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
// for example, you can disable the random execution with `random: false`
// or set a specific seed with `seed: 4321`
},
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
capabilities: {
'browserName': 'chrome',
chromeOptions: {
binary: process.env.CHROME_BIN,
args: ['--headless', '--disable-gpu', '--window-size=800,600', '--no-sandbox']
}
jasmineHtmlReporter: {
suppressAll: true // removes the duplicated traces
},
coverageIstanbulReporter: {
dir: require('path').join(__dirname, '../coverage'),
reports: ['html', 'lcovonly', 'text-summary'],
fixWebpackSourcePaths: true
coverageReporter: {
dir: require('path').join(__dirname, './coverage/app'),
subdir: '.',
reporters: [
{ type: 'html' },
{ type: 'text-summary' }
]
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['ChromeHeadlessNoSandbox'],
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: 'ChromeHeadless',
flags: ['--no-sandbox']
}
},
singleRun: false
browsers: ['Chrome'],
singleRun: false,
restartOnFileChange: true
});
};
Loading

0 comments on commit c91ec8a

Please sign in to comment.