Skip to content

Commit

Permalink
chore(ci): update to node v20
Browse files Browse the repository at this point in the history
  • Loading branch information
stas-nc committed Oct 13, 2023
1 parent 74bc2bc commit bd12dc4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 23 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
23 changes: 13 additions & 10 deletions e2e/codecept.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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,
Expand All @@ -59,7 +62,7 @@ exports.config = {
enabled: true,
},
retryFailedStep: {
enabled: true
enabled: true,
},
autoDelay: {
enabled: true,
Expand Down

0 comments on commit bd12dc4

Please sign in to comment.