From b36a9437629475f7c9db85d9bf9b1775fb88da04 Mon Sep 17 00:00:00 2001 From: Koy Date: Wed, 7 Jan 2026 16:00:49 +0800 Subject: [PATCH] chore: unify node version config --- .github/workflows/test.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1a66eb1fb..adcf66641 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,12 +7,15 @@ on: branches: [main, develop] workflow_dispatch: +node_versions: &node_versions + - 'lts/*' + jobs: lint: runs-on: ubuntu-latest strategy: matrix: - node-version: ['lts/*'] + node-version: *node_versions steps: - uses: actions/checkout@v6 - name: Setup Node.js ${{ matrix.node-version }} @@ -32,7 +35,7 @@ jobs: strategy: fail-fast: false matrix: - node-version: ['lts/*'] + node-version: *node_versions os: ['macos-latest', 'ubuntu-latest', 'windows-latest'] steps: - uses: actions/checkout@v6 @@ -56,7 +59,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: ['lts/*'] + node-version: *node_versions steps: - uses: actions/checkout@v6 - name: Setup Node.js ${{ matrix.node-version }}