diff --git a/.github/workflows/appium_Android.yml b/.github/workflows/appium_Android.yml index e9347ebcd..b134491c3 100644 --- a/.github/workflows/appium_Android.yml +++ b/.github/workflows/appium_Android.yml @@ -28,16 +28,15 @@ jobs: strategy: matrix: - node-version: [22.x] test-suite: ['other', 'quick'] steps: - uses: actions/checkout@v6 - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js uses: actions/setup-node@v6 with: - node-version: ${{ matrix.node-version }} + node-version-file: '.nvmrc' - run: npm i env: diff --git a/.github/workflows/appium_iOS.yml b/.github/workflows/appium_iOS.yml index d7f72bf42..94d3ac9d9 100644 --- a/.github/workflows/appium_iOS.yml +++ b/.github/workflows/appium_iOS.yml @@ -24,15 +24,14 @@ jobs: strategy: matrix: - node-version: [22.x] test-suite: ['other', 'quick'] steps: - uses: actions/checkout@v6 - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js uses: actions/setup-node@v6 with: - node-version: ${{ matrix.node-version }} + node-version-file: '.nvmrc' - run: npm i --force env: PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true diff --git a/.github/workflows/doc-generation.yml b/.github/workflows/doc-generation.yml index 0c8b799ed..87033e6d9 100644 --- a/.github/workflows/doc-generation.yml +++ b/.github/workflows/doc-generation.yml @@ -13,18 +13,14 @@ jobs: update-documentation: runs-on: ubuntu-22.04 - strategy: - matrix: - node-version: [22.x] - steps: - name: Check out the repo uses: actions/checkout@v6 - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js uses: actions/setup-node@v6 with: - node-version: ${{ matrix.node-version }} + node-version-file: '.nvmrc' - uses: oven-sh/setup-bun@v2 diff --git a/.github/workflows/dtslint.yml b/.github/workflows/dtslint.yml index e91612c29..7b3b4e610 100644 --- a/.github/workflows/dtslint.yml +++ b/.github/workflows/dtslint.yml @@ -16,14 +16,13 @@ jobs: test: runs-on: ubuntu-22.04 strategy: - matrix: - node-version: [22.x] + matrix: {} steps: - uses: actions/checkout@v6 - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js uses: actions/setup-node@v6 with: - node-version: ${{ matrix.node-version }} + node-version-file: '.nvmrc' - uses: oven-sh/setup-bun@v2 - run: npm i --force env: diff --git a/.github/workflows/lightpanda.yml b/.github/workflows/lightpanda.yml index 834e9f5b5..ded1dbc9f 100644 --- a/.github/workflows/lightpanda.yml +++ b/.github/workflows/lightpanda.yml @@ -25,18 +25,14 @@ jobs: runs-on: ubuntu-22.04 timeout-minutes: 15 - strategy: - matrix: - node-version: [22.x] - steps: - uses: actions/checkout@v6 with: persist-credentials: false - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js uses: actions/setup-node@v6 with: - node-version: ${{ matrix.node-version }} + node-version-file: '.nvmrc' - uses: shivammathur/setup-php@v2 with: php-version: 8.0 diff --git a/.github/workflows/moli.yml b/.github/workflows/moli.yml index a2b442cf4..92c279d49 100644 --- a/.github/workflows/moli.yml +++ b/.github/workflows/moli.yml @@ -26,18 +26,14 @@ jobs: runs-on: ubuntu-22.04 timeout-minutes: 15 - strategy: - matrix: - node-version: [22.x] - steps: - uses: actions/checkout@v6 with: persist-credentials: false - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js uses: actions/setup-node@v6 with: - node-version: ${{ matrix.node-version }} + node-version-file: '.nvmrc' - uses: shivammathur/setup-php@v2 with: php-version: 8.0 diff --git a/.github/workflows/obscura.yml b/.github/workflows/obscura.yml index 739bb3ecc..80532d16f 100644 --- a/.github/workflows/obscura.yml +++ b/.github/workflows/obscura.yml @@ -26,18 +26,14 @@ jobs: runs-on: ubuntu-22.04 timeout-minutes: 15 - strategy: - matrix: - node-version: [22.x] - steps: - uses: actions/checkout@v6 with: persist-credentials: false - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js uses: actions/setup-node@v6 with: - node-version: ${{ matrix.node-version }} + node-version-file: '.nvmrc' - uses: shivammathur/setup-php@v2 with: php-version: 8.0 diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index baac5d71c..ee7614dac 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -22,16 +22,12 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 30 - strategy: - matrix: - node-version: [22.x] - steps: - uses: actions/checkout@v6 - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js uses: actions/setup-node@v6 with: - node-version: ${{ matrix.node-version }} + node-version-file: '.nvmrc' - uses: shivammathur/setup-php@v2 with: php-version: 7.4 diff --git a/.github/workflows/plugin.yml b/.github/workflows/plugin.yml index 83eea7359..b89756cbd 100644 --- a/.github/workflows/plugin.yml +++ b/.github/workflows/plugin.yml @@ -22,16 +22,12 @@ jobs: runs-on: ubuntu-22.04 timeout-minutes: 20 - strategy: - matrix: - node-version: [22.x] - steps: - uses: actions/checkout@v6 - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js uses: actions/setup-node@v6 with: - node-version: ${{ matrix.node-version }} + node-version-file: '.nvmrc' - uses: shivammathur/setup-php@v2 with: php-version: 7.4 diff --git a/.github/workflows/publish-beta.yml b/.github/workflows/publish-beta.yml index b4cdc69c6..2de031ec8 100644 --- a/.github/workflows/publish-beta.yml +++ b/.github/workflows/publish-beta.yml @@ -19,7 +19,7 @@ jobs: - uses: actions/setup-node@v6 with: - node-version: 24 + node-version-file: '.nvmrc' registry-url: 'https://registry.npmjs.org' - uses: oven-sh/setup-bun@v2 diff --git a/.github/workflows/puppeteer.yml b/.github/workflows/puppeteer.yml index 3f698e56f..59f4d8903 100644 --- a/.github/workflows/puppeteer.yml +++ b/.github/workflows/puppeteer.yml @@ -22,22 +22,18 @@ jobs: runs-on: ubuntu-22.04 timeout-minutes: 25 - strategy: - matrix: - node-version: [22.x] - steps: - uses: actions/checkout@v6 - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js uses: actions/setup-node@v6 with: - node-version: ${{ matrix.node-version }} + node-version-file: '.nvmrc' - uses: shivammathur/setup-php@v2 with: php-version: 7.4 - name: npm install run: | - npm i --force && npm i puppeteer --force + npm i --force && npm i puppeteer --force && npx puppeteer install chrome@144.0.7559.96 env: PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true - name: Start mock server diff --git a/.github/workflows/sharding-demo.yml b/.github/workflows/sharding-demo.yml index 7385fcb57..a6bad32c9 100644 --- a/.github/workflows/sharding-demo.yml +++ b/.github/workflows/sharding-demo.yml @@ -33,7 +33,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v6 with: - node-version: 22 + node-version-file: '.nvmrc' - name: Install dependencies run: npm install --ignore-scripts diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ab49db4cf..f0ec38f1d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,7 +20,7 @@ jobs: strategy: matrix: - node-version: [26.x] + node-version: [22.x, 26.x] steps: - uses: actions/checkout@v6 @@ -60,7 +60,7 @@ jobs: strategy: matrix: - node-version: [ 22.x ] + node-version: [22.x] steps: - uses: actions/checkout@v6 diff --git a/.github/workflows/webdriver.yml b/.github/workflows/webdriver.yml index 50e191277..65c075a89 100644 --- a/.github/workflows/webdriver.yml +++ b/.github/workflows/webdriver.yml @@ -21,17 +21,25 @@ jobs: build: runs-on: ubuntu-latest timeout-minutes: 25 - strategy: - matrix: - node-version: [22.x] steps: - - run: docker run -d --net=host --shm-size=2g selenium/standalone-chrome:4.27 + - run: docker run -d --net=host --shm-size=2g selenium/standalone-chrome:4.25 + - name: Wait for Selenium to be ready + run: | + for i in {1..60}; do + if curl -sSf http://127.0.0.1:4444/wd/hub/status > /dev/null 2>&1; then + echo "Selenium is ready" + break + fi + echo "Waiting for Selenium... ($i/60)" + sleep 1 + done + sleep 2 - uses: actions/checkout@v6 - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js uses: actions/setup-node@v6 with: - node-version: ${{ matrix.node-version }} + node-version-file: '.nvmrc' - uses: shivammathur/setup-php@v2 with: php-version: 8.0 diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 000000000..b8b23ca93 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +22.23.4