Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 1f8b57d

Browse files
authored
CI: add matrix for node versions to JS PRs (#7266)
1 parent d86ecb3 commit 1f8b57d

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/pull-request-js.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,29 +40,32 @@ jobs:
4040
js-test:
4141
strategy:
4242
matrix:
43+
node-version: [16.x, 18.x, 20.x]
4344
package:
4445
[
4546
account-compression,
4647
libraries,
4748
memo,
4849
name-service,
49-
single-pool,
5050
stake-pool,
5151
token,
5252
token-group,
53-
token-lending,
5453
token-metadata,
5554
token-swap,
5655
]
56+
include:
57+
# Restrict single-pool and token-lending to supported Node.js versions.
58+
- package: single-pool
59+
node-version: 20.5
60+
- package: token-lending
61+
node-version: 18.5
5762
runs-on: ubuntu-latest
58-
env:
59-
NODE_VERSION: 20.5
6063
steps:
6164
- uses: actions/checkout@v4
62-
- name: Use Node.js ${{ env.NODE_VERSION }}
65+
- name: Use Node.js ${{ matrix.node-version }}
6366
uses: actions/setup-node@v4
6467
with:
65-
node-version: ${{ env.NODE_VERSION }}
68+
node-version: ${{ matrix.node-version }}
6669
- uses: pnpm/action-setup@v4
6770
- uses: actions/cache@v4
6871
with:

0 commit comments

Comments
 (0)