diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7ca244a..f6846bc 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,6 +12,10 @@ jobs: test: runs-on: ubuntu-latest + strategy: + matrix: + node-version: [18, 20] + steps: - name: Checkout code uses: actions/checkout@v4 @@ -19,7 +23,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: '20' + node-version: ${{ matrix.node-version }} - name: Install dependencies run: npm ci diff --git a/.nvmrc b/.nvmrc index 2bd5a0a..209e3ef 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -22 +20 diff --git a/package.json b/package.json index a5e1020..98685dd 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "lint": "npm-run-all --parallel lint:*", "prepack": "npm run build", "pretest": "npm run build", - "test": "c8 --100 --exclude 'dist/proto/*' node --test test", + "test": "c8 --100 --exclude 'dist/proto/*' node --test", "posttest": "c8 report --reporter=text-lcov > ./coverage/lcov.info", "prepare": "husky" },