Pārlūkot izejas kodu

Run CommonJS/ESM usage tests on more Node.js versions

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.
pull/779/head
Phillip Johnsen pirms 5 gadiem
vecāks
revīzija
d6303916c9
1 mainītis faili ar 10 papildinājumiem un 2 dzēšanām
  1. +10
    -2
      .github/workflows/usage.yml

+ 10
- 2
.github/workflows/usage.yml Parādīt failu

@@ -51,13 +51,17 @@ jobs:
common-js-usage: common-js-usage:
runs-on: ubuntu-latest runs-on: ubuntu-latest


strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 15.x]

needs: package needs: package
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v1 uses: actions/setup-node@v1
with: with:
node-version: 12.x
node-version: ${{ matrix.node-version }}
- name: Get package tarball from package step - name: Get package tarball from package step
uses: actions/download-artifact@v2 uses: actions/download-artifact@v2
with: with:
@@ -74,13 +78,17 @@ jobs:
esm-usage: esm-usage:
runs-on: ubuntu-latest runs-on: ubuntu-latest


strategy:
matrix:
node-version: [14.x, 15.x]

needs: package needs: package
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v1 uses: actions/setup-node@v1
with: with:
node-version: '>=13.2.0'
node-version: ${{ matrix.node-version }}
- name: Get package tarball from package step - name: Get package tarball from package step
uses: actions/download-artifact@v2 uses: actions/download-artifact@v2
with: with:


Notiek ielāde…
Atcelt
Saglabāt