Add min OS version check to CI

This commit is contained in:
Fedor Indutny
2025-09-25 12:26:46 -07:00
committed by GitHub
parent 3af511fb5d
commit e3474f468f
4 changed files with 227 additions and 3 deletions

View File

@@ -459,3 +459,41 @@ jobs:
with:
name: logs-${{ matrix.workerIndex }}
path: artifacts
check-min-os-version:
needs: lint
continue-on-error: true
strategy:
matrix:
os: [ubuntu-22.04-8-cores, macos-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 30
steps:
- run: uname -a
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Setup pnpm
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4
- name: Setup node.js
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4
with:
node-version-file: '.nvmrc'
cache: 'pnpm'
cache-dependency-path: 'pnpm-lock.yaml'
- name: Cache .electron-gyp
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4
with:
path: ~/.electron-gyp
key: electron-gyp-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}
- name: Install Desktop node_modules
run: pnpm install
env:
NPM_CONFIG_LOGLEVEL: verbose
- run: pnpm generate:phase-0
- name: Run OS version check
run: |
node ts/scripts/check-min-os-version.js