From 707635d0f7f94964a329097160af57ed79b6c5fd Mon Sep 17 00:00:00 2001 From: Thomas Hohn Date: Mon, 15 Sep 2025 09:21:50 +0200 Subject: [PATCH] Bump actions/stale to 10 and actions/setup-node to 5 --- .github/workflows/appium_Android.yml | 2 +- .github/workflows/appium_iOS.yml | 2 +- .github/workflows/close-inactive-issues.yml | 10 ++-- .github/workflows/doc-generation.yml | 4 +- .github/workflows/dtslint.yml | 22 ++++----- .github/workflows/playwright.yml | 2 +- .github/workflows/plugin.yml | 2 +- .github/workflows/puppeteer.yml | 43 +++++++++-------- .github/workflows/sharding-demo.yml | 2 +- .github/workflows/test.yml | 4 +- .github/workflows/testcafe.yml | 51 ++++++++++----------- .github/workflows/webdriver.yml | 2 +- 12 files changed, 72 insertions(+), 74 deletions(-) diff --git a/.github/workflows/appium_Android.yml b/.github/workflows/appium_Android.yml index 7c96714ec..58cd61fce 100644 --- a/.github/workflows/appium_Android.yml +++ b/.github/workflows/appium_Android.yml @@ -25,7 +25,7 @@ jobs: - uses: actions/checkout@v5 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: ${{ matrix.node-version }} diff --git a/.github/workflows/appium_iOS.yml b/.github/workflows/appium_iOS.yml index fb70b43d4..22d47d4cd 100644 --- a/.github/workflows/appium_iOS.yml +++ b/.github/workflows/appium_iOS.yml @@ -25,7 +25,7 @@ jobs: steps: - uses: actions/checkout@v5 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: ${{ matrix.node-version }} - run: npm i --force diff --git a/.github/workflows/close-inactive-issues.yml b/.github/workflows/close-inactive-issues.yml index dca998c37..791af6d49 100644 --- a/.github/workflows/close-inactive-issues.yml +++ b/.github/workflows/close-inactive-issues.yml @@ -1,7 +1,7 @@ name: Close inactive issues on: schedule: - - cron: "30 1 * * *" + - cron: '30 1 * * *' jobs: close-issues: @@ -10,13 +10,13 @@ jobs: issues: write pull-requests: write steps: - - uses: actions/stale@v9 + - uses: actions/stale@v10 with: days-before-issue-stale: 90 days-before-issue-close: 365 - stale-issue-label: "stale" - stale-issue-message: "This issue is stale because it has been open for 90 days with no activity." - close-issue-message: "Please reopen and send PR to fix it, as looks like our team could not fix it on our own" + stale-issue-label: 'stale' + stale-issue-message: 'This issue is stale because it has been open for 90 days with no activity.' + close-issue-message: 'Please reopen and send PR to fix it, as looks like our team could not fix it on our own' days-before-pr-stale: -1 days-before-pr-close: -1 repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/doc-generation.yml b/.github/workflows/doc-generation.yml index e1f56ff39..dcf9371b5 100644 --- a/.github/workflows/doc-generation.yml +++ b/.github/workflows/doc-generation.yml @@ -11,14 +11,14 @@ jobs: strategy: matrix: - node-version: [ 20.x ] + node-version: [20.x] steps: - name: Check out the repo uses: actions/checkout@v5 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: ${{ matrix.node-version }} diff --git a/.github/workflows/dtslint.yml b/.github/workflows/dtslint.yml index 97e2622b7..62824b11a 100644 --- a/.github/workflows/dtslint.yml +++ b/.github/workflows/dtslint.yml @@ -15,14 +15,14 @@ jobs: matrix: node-version: [20.x] steps: - - uses: actions/checkout@v5 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - - run: npm i --force - env: - PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true - PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true - - run: npm run def - - run: npm run dtslint + - uses: actions/checkout@v5 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v5 + with: + node-version: ${{ matrix.node-version }} + - run: npm i --force + env: + PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true + PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true + - run: npm run def + - run: npm run dtslint diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 77df0d4a8..f4a7182fb 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -24,7 +24,7 @@ jobs: steps: - uses: actions/checkout@v5 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: ${{ matrix.node-version }} - uses: shivammathur/setup-php@v2 diff --git a/.github/workflows/plugin.yml b/.github/workflows/plugin.yml index ea8d319e1..90219a94d 100644 --- a/.github/workflows/plugin.yml +++ b/.github/workflows/plugin.yml @@ -24,7 +24,7 @@ jobs: steps: - uses: actions/checkout@v5 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: ${{ matrix.node-version }} - uses: shivammathur/setup-php@v2 diff --git a/.github/workflows/puppeteer.yml b/.github/workflows/puppeteer.yml index 2807c3998..336517ebd 100644 --- a/.github/workflows/puppeteer.yml +++ b/.github/workflows/puppeteer.yml @@ -15,7 +15,6 @@ env: jobs: build: - runs-on: ubuntu-22.04 strategy: @@ -23,24 +22,24 @@ jobs: node-version: [20.x] steps: - - uses: actions/checkout@v5 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - - uses: shivammathur/setup-php@v2 - with: - php-version: 7.4 - - name: npm install - run: | - npm i --force && npm i puppeteer --force - env: - PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true - - name: start a server - run: "php -S 127.0.0.1:8000 -t test/data/app &" - - uses: browser-actions/setup-chrome@v2 - - run: chrome --version - - name: run tests - run: "./bin/codecept.js run-workers 2 -c test/acceptance/codecept.Puppeteer.js --grep @Puppeteer --debug" - - name: run unit tests - run: ./node_modules/.bin/mocha test/helper/Puppeteer_test.js + - uses: actions/checkout@v5 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v5 + with: + node-version: ${{ matrix.node-version }} + - uses: shivammathur/setup-php@v2 + with: + php-version: 7.4 + - name: npm install + run: | + npm i --force && npm i puppeteer --force + env: + PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true + - name: start a server + run: 'php -S 127.0.0.1:8000 -t test/data/app &' + - uses: browser-actions/setup-chrome@v2 + - run: chrome --version + - name: run tests + run: './bin/codecept.js run-workers 2 -c test/acceptance/codecept.Puppeteer.js --grep @Puppeteer --debug' + - name: run unit tests + run: ./node_modules/.bin/mocha test/helper/Puppeteer_test.js diff --git a/.github/workflows/sharding-demo.yml b/.github/workflows/sharding-demo.yml index c2408a8f8..071e3f037 100644 --- a/.github/workflows/sharding-demo.yml +++ b/.github/workflows/sharding-demo.yml @@ -27,7 +27,7 @@ jobs: uses: actions/checkout@v5 - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: 20 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f979e09fe..5bb4a1752 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,7 +20,7 @@ jobs: steps: - uses: actions/checkout@v5 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: ${{ matrix.node-version }} - run: npm i @@ -40,7 +40,7 @@ jobs: steps: - uses: actions/checkout@v5 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: ${{ matrix.node-version }} - run: npm i diff --git a/.github/workflows/testcafe.yml b/.github/workflows/testcafe.yml index 8b70ea319..92c803fce 100644 --- a/.github/workflows/testcafe.yml +++ b/.github/workflows/testcafe.yml @@ -13,7 +13,6 @@ env: # Force terminal colors. @see https://www.npmjs.com/package/colors FORCE_COLOR: 1 - jobs: build: strategy: @@ -26,28 +25,28 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v5 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php-version }} - - name: npm install - run: | - npm i --force - env: - PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true - PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true - - name: start a server - run: | - if [ "$RUNNER_OS" == "Windows" ]; then - start /B php -S 127.0.0.1:8000 -t test/data/app - else - php -S 127.0.0.1:8000 -t test/data/app & - fi - sleep 3 - shell: bash - - name: run unit tests - run: npm run test:unit:webbapi:testCafe + - uses: actions/checkout@v5 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v5 + with: + node-version: ${{ matrix.node-version }} + - uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-version }} + - name: npm install + run: | + npm i --force + env: + PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true + PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true + - name: start a server + run: | + if [ "$RUNNER_OS" == "Windows" ]; then + start /B php -S 127.0.0.1:8000 -t test/data/app + else + php -S 127.0.0.1:8000 -t test/data/app & + fi + sleep 3 + shell: bash + - name: run unit tests + run: npm run test:unit:webbapi:testCafe diff --git a/.github/workflows/webdriver.yml b/.github/workflows/webdriver.yml index 646fb6fa4..a9b7f7317 100644 --- a/.github/workflows/webdriver.yml +++ b/.github/workflows/webdriver.yml @@ -24,7 +24,7 @@ jobs: - run: docker run -d --net=host --shm-size=2g selenium/standalone-chrome:4.27 - uses: actions/checkout@v5 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: ${{ matrix.node-version }} - uses: shivammathur/setup-php@v2