Files
firefox-accounts-mirror/packages/fxa-shared/pm2.config.js
dschom d96797ae6a task(CI): Improve nx caching for CI pipelines
Because:
- Not all CI operations where taking advantage of NX caches

This Commit:
- Adjusts nx.json config to ensure correct caching behavior
- Adjusts nx.json config to ensure proper target chains. ie build is dependent on pre-build
- Uses nx to directly run integration tests
- Uses nx to directly run unit tests
- Phases out dependency on generated .list files
- Ensures 'start up' for services for functional tests is done with nx and uses nx caches.
- Creates nx tags to facilitate test commands
- Fixes linter errors encountered
- Updates docker images to nx for builds
- Updates nx ignore files
2023-08-29 11:19:54 -07:00

28 lines
595 B
JavaScript

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
const PATH = process.env.PATH.split(':')
.filter((p) => !p.includes(process.env.TMPDIR))
.join(':');
const apps = [];
if (process.env.CI !== 'true') {
apps.push({
name: 'shared-tsc',
script: 'yarn tsc --build --watch',
cwd: __dirname,
max_restarts: '1',
env: {
PATH,
},
filter_env: ['npm_'],
time: true,
});
}
module.exports = {
apps,
};