diff --git a/.github/workflows/compatibility-tests.yml b/.github/workflows/compatibility-tests.yml index 42cc34d..6bbcaf8 100644 --- a/.github/workflows/compatibility-tests.yml +++ b/.github/workflows/compatibility-tests.yml @@ -42,6 +42,8 @@ jobs: ${{ runner.os }}-${{ matrix.node-version }}-yarn- - 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. - run: yarn workspace @theatre/compatibility-tests run install-fixtures diff --git a/compatibility-tests/fixtures/next/__snapshots__/production.compat-test.ts.snap b/compatibility-tests/fixtures/next/__snapshots__/production.compat-test.ts.snap deleted file mode 100644 index cd6868b..0000000 --- a/compatibility-tests/fixtures/next/__snapshots__/production.compat-test.ts.snap +++ /dev/null @@ -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... - -" -`; diff --git a/compatibility-tests/scripts/scripts.mjs b/compatibility-tests/scripts/scripts.mjs index bf9a782..ccfdc96 100644 --- a/compatibility-tests/scripts/scripts.mjs +++ b/compatibility-tests/scripts/scripts.mjs @@ -9,7 +9,9 @@ import onCleanup from 'node-cleanup' import * as verdaccioPackage from 'verdaccio' import {chromium, devices} from 'playwright' -if (!argv['verbose']) { +const verbose = !!argv['verbose'] + +if (!verbose) { $.verbose = false console.log( 'Running in quiet mode. Add --verbose to see the output of all commands.', @@ -82,7 +84,9 @@ async function runNpmInstallOnTestPackages() { cd(pathToPackageDir) try { 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) { console.error(`Failed to install dependencies for ${pathToPackageDir} 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) => { webServer.listen(port, () => { resolved = true diff --git a/compatibility-tests/verdaccio.yml b/compatibility-tests/verdaccio.yml index 1176805..5d25dbb 100644 --- a/compatibility-tests/verdaccio.yml +++ b/compatibility-tests/verdaccio.yml @@ -10,6 +10,7 @@ auth: uplinks: npmjs: url: https://registry.npmjs.org/ + cache: false packages: '@theatre/*': access: $all