chore(deps-dev): bump @types/node from 22.10.2 to 22.10.5 #2380
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
pull_request_target: | |
jobs: | |
dependency-check: | |
name: 🔎 📦 Dependency Check | |
runs-on: ubuntu-latest | |
outputs: | |
run_unit_tests: ${{ steps.set-vars.outputs.run_unit_tests }} | |
run_web_tests: ${{ steps.set-vars.outputs.run_web_tests }} | |
steps: | |
- name: 🧐 Determine Job to Run | |
id: set-vars | |
run: | | |
PR_TITLE="${{ github.event.pull_request.title }}" | |
UNIT_TEST_REGEX='(@typescript-eslint|vitest|eslint|@types|@tsconfig|ts-node|jsdom|typescript)' | |
WEB_TEST_REGEX='(@wdio(?!\/appium-service)|copyfiles|rimraf|saucelabs|lambdatest|webdriverio)' | |
if [[ $PR_TITLE =~ $UNIT_TEST_REGEX ]]; then | |
echo "::set-output name=run_unit_tests::true" | |
fi | |
if [[ $PR_TITLE =~ $WEB_TEST_REGEX ]]; then | |
echo "::set-output name=run_web_tests::true" | |
fi | |
ci-dependency-unit-test: | |
name: 🧪 CI Dependency Update Run Unit Tests | |
needs: dependency-check | |
if: needs.dependency-check.outputs.run_unit_tests == 'true' | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- name: ⬇️ Checkout Repository | |
uses: actions/checkout@v3 | |
- name: ⬇️ Checkout PR Repository | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: 📦 Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 8 | |
- name: 🟢 Setup Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: pnpm | |
- name: 🧩 Install Dependencies | |
run: pnpm pnpm.install.workaround | |
- name: 🏗️ Build | |
working-directory: ./ | |
run: pnpm build | |
- name: 🧪 Run linting and unit tests | |
run: pnpm test | |
ci-dependency-web: | |
name: 🌐 CI Dependency Update Run Desktop Web Tests on LambdaTest | |
needs: dependency-check | |
if: needs.dependency-check.outputs.run_web_tests == 'true' | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- name: ⬇️ Checkout Repository | |
if: ${{ github.event_name != 'pull_request_target' }} | |
uses: actions/checkout@v3 | |
- name: ⬇️ Checkout PR Repository | |
if: ${{ github.event_name == 'pull_request_target' }} | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: 📦 Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 8 | |
- name: 🟢 Setup Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: pnpm | |
- name: 🧩 Install Dependencies | |
run: pnpm pnpm.install.workaround | |
- name: 🏗️ Build | |
working-directory: ./ | |
run: pnpm build | |
- name: 🧪 Run linting and unit tests | |
working-directory: ./ | |
run: pnpm test | |
- name: 🖥️ 🌐 Run Desktop Web e2e tests | |
working-directory: ./ | |
env: | |
LAMBDATEST_USERNAME: ${{ secrets.LAMBDATEST_USERNAME }} | |
LAMBDATEST_ACCESS_KEY: ${{ secrets.LAMBDATEST_ACCESS_KEY }} | |
BUILD_PREFIX: true | |
run: pnpm test.lambdatest.desktop --maxConcurrency=7 | |
- name: 📤 Upload artifacts | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: dependency-update-desktop-web-logs | |
path: | | |
logs/*.log | |
.tmp/ | |
!.tmp/checkActual/ | |
!.tmp/saveActual/ | |
!.tmp/testDiff/ | |
!.next/ | |
ci-pr-desktop-web: | |
name: 🔄 💻 CI PR Run Desktop Web Tests on LambdaTest | |
runs-on: ubuntu-latest | |
if: | | |
github.event_name == 'pull_request' && | |
github.actor != 'dependabot[bot]' | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- name: ⬇️ Checkout Repository | |
if: ${{ github.event_name != 'pull_request_target' }} | |
uses: actions/checkout@v3 | |
- name: ⬇️ Checkout PR Repository | |
if: ${{ github.event_name == 'pull_request_target' }} | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: 📦 Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 8 | |
- name: 🟢 Setup Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: pnpm | |
- name: 🧩 Install Dependencies | |
run: pnpm pnpm.install.workaround | |
- name: 🏗️ Build | |
working-directory: ./ | |
run: pnpm build | |
- name: 🧪 Run linting and unit tests | |
working-directory: ./ | |
run: pnpm test | |
- name: 🖥️ 🌐 Run Desktop Web e2e tests | |
working-directory: ./ | |
env: | |
LAMBDATEST_USERNAME: ${{ secrets.LAMBDATEST_USERNAME }} | |
LAMBDATEST_ACCESS_KEY: ${{ secrets.LAMBDATEST_ACCESS_KEY }} | |
BUILD_PREFIX: true | |
run: pnpm test.lambdatest.desktop --maxConcurrency=3 | |
- name: 📤 Upload artifacts | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: ci-pr-desktop-web-logs | |
path: | | |
logs/*.log | |
.tmp/ | |
!.tmp/checkActual/ | |
!.tmp/saveActual/ | |
!.tmp/testDiff/ | |
!.next/ | |
ci-pr-android-web: | |
name: 🔄 🤖 🌐 CI PR Run Android Web Tests on LambdaTest | |
runs-on: ubuntu-latest | |
if: | | |
github.event_name == 'pull_request' && | |
github.actor != 'dependabot[bot]' | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- name: ⬇️ Checkout Repository | |
if: ${{ github.event_name != 'pull_request_target' }} | |
uses: actions/checkout@v3 | |
- name: ⬇️ Checkout PR Repository | |
if: ${{ github.event_name == 'pull_request_target' }} | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: 📦 Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 8 | |
- name: 🟢 Setup Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: pnpm | |
- name: 🧩 Install Dependencies | |
run: pnpm pnpm.install.workaround | |
- name: 🏗️ Build | |
working-directory: ./ | |
run: pnpm build | |
- name: 🧪 Run linting and unit tests | |
working-directory: ./ | |
run: pnpm test | |
- name: 🤖 🌐 Run Android Web e2e tests | |
working-directory: ./ | |
env: | |
LAMBDATEST_USERNAME: ${{ secrets.LAMBDATEST_USERNAME }} | |
LAMBDATEST_ACCESS_KEY: ${{ secrets.LAMBDATEST_ACCESS_KEY }} | |
BUILD_PREFIX: true | |
run: pnpm test.lambdatest.emu.web --maxConcurrency=4 | |
- name: 📤 Upload artifacts | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: ci-pr-android-web-logs | |
path: | | |
logs/*.log | |
.tmp/ | |
!.tmp/checkActual/ | |
!.tmp/saveActual/ | |
!.tmp/testDiff/ | |
!.next/ | |
ci-pr-ios-web: | |
name: 🔄 🍏 🌐 CI PR Run iOS Web Tests on LambdaTest | |
runs-on: ubuntu-latest | |
if: | | |
github.event_name == 'pull_request' && | |
github.actor != 'dependabot[bot]' | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- name: ⬇️ Checkout Repository | |
if: ${{ github.event_name != 'pull_request_target' }} | |
uses: actions/checkout@v3 | |
- name: ⬇️ Checkout PR Repository | |
if: ${{ github.event_name == 'pull_request_target' }} | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: 📦 Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 8 | |
- name: 🟢 Setup Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: pnpm | |
- name: 🧩 Install Dependencies | |
run: pnpm pnpm.install.workaround | |
- name: 🏗️ Build | |
working-directory: ./ | |
run: pnpm build | |
- name: 🧪 Run linting and unit tests | |
working-directory: ./ | |
run: pnpm test | |
- name: 🍏 🌐 Run iOS Web e2e tests | |
working-directory: ./ | |
env: | |
LAMBDATEST_USERNAME: ${{ secrets.LAMBDATEST_USERNAME }} | |
LAMBDATEST_ACCESS_KEY: ${{ secrets.LAMBDATEST_ACCESS_KEY }} | |
BUILD_PREFIX: true | |
run: pnpm test.lambdatest.sims.web --maxConcurrency=4 | |
- name: 📤 Upload artifacts | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: ci-pr-ios-web-logs | |
path: | | |
logs/*.log | |
.tmp/ | |
!.tmp/checkActual/ | |
!.tmp/saveActual/ | |
!.tmp/testDiff/ | |
!.next/ | |
ci-pr-app: | |
name: 🔄 📱 CI PR Run Mobile App Tests on Sauce | |
runs-on: ubuntu-latest | |
if: | | |
github.event_name == 'pull_request' && | |
github.actor != 'dependabot[bot]' | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- name: ⬇️ Checkout Repository | |
if: ${{ github.event_name != 'pull_request_target' }} | |
uses: actions/checkout@v3 | |
- name: ⬇️ Checkout PR Repository | |
if: ${{ github.event_name == 'pull_request_target' }} | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: 📦 Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 8 | |
- name: 🟢 Setup Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: pnpm | |
- name: 🧩 Install Dependencies | |
run: pnpm pnpm.install.workaround | |
- name: 🏗️ Build | |
working-directory: ./ | |
run: pnpm build | |
- name: 🧪 Run linting and unit tests | |
working-directory: ./ | |
run: pnpm test | |
- name: 😶🌫️ 📱 Run App e2e tests | |
working-directory: ./ | |
env: | |
SAUCE_USERNAME_WDIO_ICS: ${{ secrets.SAUCE_USERNAME_WDIO_ICS }} | |
SAUCE_ACCESS_KEY_WDIO_ICS: ${{ secrets.SAUCE_ACCESS_KEY_WDIO_ICS }} | |
BUILD_PREFIX: true | |
run: pnpm test.saucelabs.app --maxConcurrency=20 | |
- name: 📤 Upload artifacts | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: ci-pr-mobile-app-logs | |
path: | | |
logs/*.log | |
.tmp/ | |
!.tmp/checkActual/ | |
!.tmp/saveActual/ | |
!.tmp/testDiff/ | |
!.next/ | |
ci-pr-ocr: | |
name: 🔄 📱 CI PR Run OCR Tests on LambdaTest | |
runs-on: ubuntu-latest | |
if: | | |
github.event_name == 'pull_request' && | |
github.actor != 'dependabot[bot]' | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- name: ⬇️ Checkout Repository | |
if: ${{ github.event_name != 'pull_request_target' }} | |
uses: actions/checkout@v3 | |
- name: ⬇️ Checkout PR Repository | |
if: ${{ github.event_name == 'pull_request_target' }} | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: 📦 Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 8 | |
- name: 🟢 Setup Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: pnpm | |
- name: 🧩 Install Dependencies | |
run: pnpm pnpm.install.workaround | |
- name: 🏗️ Build | |
working-directory: ./ | |
run: pnpm build | |
- name: 🧪 Run linting and unit tests | |
working-directory: ./ | |
run: pnpm test | |
- name: 😶🌫️ 🔎 Run OCR e2e tests | |
working-directory: ./ | |
env: | |
LAMBDATEST_USERNAME: ${{ secrets.LAMBDATEST_USERNAME }} | |
LAMBDATEST_ACCESS_KEY: ${{ secrets.LAMBDATEST_ACCESS_KEY }} | |
BUILD_PREFIX: true | |
run: pnpm test.ocr.lambdatest.desktop --maxConcurrency=1 | |
- name: 📤 Upload artifacts | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: ci-pr-ocr-logs | |
path: | | |
logs/*.log | |
.tmp/ | |
!.next/ |