diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b922c097..0eb756cd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -247,30 +247,25 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Use Node.js 16 - uses: actions/setup-node@v1 + - name: Setup Node.js + uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 20.8.0 + cache: 'npm' + cache-dependency-path: '**/package-lock.json' - name: Install Chrome deps run: sudo apt-get update && sudo apt-get install -y libgbm-dev - - name: Cache node modules - uses: actions/cache@v1 - env: - cache-name: cache-node-modules - with: - path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS - key: ${{ runner.os }}-build - - name: Install dependencies - run: npm i + run: npm install - name: Build ILC & Registry run: npm run build - name: Run E2E tests - run: cd e2e && npm run start:verbose + working-directory: e2e + run: npm run start:verbose env: DB_CLIENT: ${{ matrix.database.client }} DB_HOST: localhost diff --git a/e2e/codecept.conf.js b/e2e/codecept.conf.js index 508d9b7c..a5dcb2ee 100644 --- a/e2e/codecept.conf.js +++ b/e2e/codecept.conf.js @@ -11,6 +11,9 @@ exports.config = { url: `http://localhost:8233`, show: process.env.SHOW_UI === 'true', windowSize: '1200x900', + chrome: { + headless: 'new', + }, }, MockRequestHelper: { require: '@codeceptjs/mock-request', @@ -26,30 +29,30 @@ exports.config = { }, }, Mochawesome: { - uniqueScreenshotNames: true + uniqueScreenshotNames: true, }, // Adds assertions to API https://www.npmjs.com/package/codeceptjs-chai - ChaiWrapper : { - require: 'codeceptjs-chai' - } + ChaiWrapper: { + require: 'codeceptjs-chai', + }, }, mocha: { reporterOptions: { 'codeceptjs-cli-reporter': { - stdout: "-", + stdout: '-', options: { verbose: true, steps: true, - } + }, }, mochawesome: { stdout: path.join(outputDir, 'console.log'), options: { reportDir: outputDir, - reportFilename: "report" - } + reportFilename: 'report', + }, }, - } + }, }, bootstrap: preSettings.bootstrap, teardown: preSettings.teardown, @@ -59,7 +62,7 @@ exports.config = { enabled: true, }, retryFailedStep: { - enabled: true + enabled: true, }, autoDelay: { enabled: true,