Skip to content

Commit e90b2a9

Browse files
authored
Run CommonJS/ESM usage tests on more Node.js versions (#779)
As it's very interesting to see how the package works for different major versions of Node.js, not just 12.x or 13.x as before.
1 parent e53a6e8 commit e90b2a9

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/usage.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,17 @@ jobs:
5151
common-js-usage:
5252
runs-on: ubuntu-latest
5353

54+
strategy:
55+
matrix:
56+
node-version: [10.x, 12.x, 14.x, 15.x]
57+
5458
needs: package
5559
steps:
5660
- uses: actions/checkout@v1
5761
- name: Setup Node.js
5862
uses: actions/setup-node@v1
5963
with:
60-
node-version: 12.x
64+
node-version: ${{ matrix.node-version }}
6165
- name: Get package tarball from package step
6266
uses: actions/download-artifact@v2
6367
with:
@@ -74,13 +78,17 @@ jobs:
7478
esm-usage:
7579
runs-on: ubuntu-latest
7680

81+
strategy:
82+
matrix:
83+
node-version: [14.x, 15.x]
84+
7785
needs: package
7886
steps:
7987
- uses: actions/checkout@v1
8088
- name: Setup Node.js
8189
uses: actions/setup-node@v1
8290
with:
83-
node-version: '>=13.2.0'
91+
node-version: ${{ matrix.node-version }}
8492
- name: Get package tarball from package step
8593
uses: actions/download-artifact@v2
8694
with:

0 commit comments

Comments
 (0)