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 }}