Fix CI error in compatibility tests (#377)
This commit is contained in:
parent
fa72c5ba5d
commit
80e79499df
4 changed files with 13 additions and 19 deletions
2
.github/workflows/compatibility-tests.yml
vendored
2
.github/workflows/compatibility-tests.yml
vendored
|
@ -42,6 +42,8 @@ jobs:
|
||||||
${{ runner.os }}-${{ matrix.node-version }}-yarn-
|
${{ runner.os }}-${{ matrix.node-version }}-yarn-
|
||||||
|
|
||||||
- run: yarn install
|
- run: yarn install
|
||||||
|
# re-enable the following line if we start to get EINTEGRITY errors again
|
||||||
|
# - run: npm cache clean || npm cache verify
|
||||||
# This will test whether `npm install`/`yarn install` can actually run on each compatibility test fixture. See `compatibility-tests/README.md` for more info.
|
# This will test whether `npm install`/`yarn install` can actually run on each compatibility test fixture. See `compatibility-tests/README.md` for more info.
|
||||||
- run:
|
- run:
|
||||||
yarn workspace @theatre/compatibility-tests run install-fixtures
|
yarn workspace @theatre/compatibility-tests run install-fixtures
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
||||||
|
|
||||||
exports[`next / production \`$ next build\` should succeed and have a predictable output 1`] = `
|
|
||||||
"
|
|
||||||
> build
|
|
||||||
> next build
|
|
||||||
|
|
||||||
info - Linting and checking validity of types...
|
|
||||||
info - Creating an optimized production build...
|
|
||||||
info - Compiled successfully
|
|
||||||
info - Collecting page data...
|
|
||||||
info - Generating static pages (0/3)
|
|
||||||
info - Generating static pages (3/3)
|
|
||||||
info - Finalizing page optimization...
|
|
||||||
|
|
||||||
"
|
|
||||||
`;
|
|
|
@ -9,7 +9,9 @@ import onCleanup from 'node-cleanup'
|
||||||
import * as verdaccioPackage from 'verdaccio'
|
import * as verdaccioPackage from 'verdaccio'
|
||||||
import {chromium, devices} from 'playwright'
|
import {chromium, devices} from 'playwright'
|
||||||
|
|
||||||
if (!argv['verbose']) {
|
const verbose = !!argv['verbose']
|
||||||
|
|
||||||
|
if (!verbose) {
|
||||||
$.verbose = false
|
$.verbose = false
|
||||||
console.log(
|
console.log(
|
||||||
'Running in quiet mode. Add --verbose to see the output of all commands.',
|
'Running in quiet mode. Add --verbose to see the output of all commands.',
|
||||||
|
@ -82,7 +84,9 @@ async function runNpmInstallOnTestPackages() {
|
||||||
cd(pathToPackageDir)
|
cd(pathToPackageDir)
|
||||||
try {
|
try {
|
||||||
console.log('Running npm install on ' + pathToPackageDir + '...')
|
console.log('Running npm install on ' + pathToPackageDir + '...')
|
||||||
await $`npm install --registry ${config.VERDACCIO_URL} --loglevel error --fund false`
|
await $`npm install --registry ${config.VERDACCIO_URL} --loglevel ${
|
||||||
|
verbose ? 'warn' : 'error'
|
||||||
|
} --fund false`
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`Failed to install dependencies for ${pathToPackageDir}
|
console.error(`Failed to install dependencies for ${pathToPackageDir}
|
||||||
Try running \`npm install\` in that directory manually via:
|
Try running \`npm install\` in that directory manually via:
|
||||||
|
@ -168,6 +172,10 @@ const startVerdaccio = (port) => {
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (verbose) {
|
||||||
|
config.logs.level = 'warn'
|
||||||
|
}
|
||||||
|
|
||||||
const onReady = (webServer) => {
|
const onReady = (webServer) => {
|
||||||
webServer.listen(port, () => {
|
webServer.listen(port, () => {
|
||||||
resolved = true
|
resolved = true
|
||||||
|
|
|
@ -10,6 +10,7 @@ auth:
|
||||||
uplinks:
|
uplinks:
|
||||||
npmjs:
|
npmjs:
|
||||||
url: https://registry.npmjs.org/
|
url: https://registry.npmjs.org/
|
||||||
|
cache: false
|
||||||
packages:
|
packages:
|
||||||
'@theatre/*':
|
'@theatre/*':
|
||||||
access: $all
|
access: $all
|
||||||
|
|
Loading…
Reference in a new issue