diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c195b46208..aa80b098f3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -264,9 +264,15 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - node: [16] + node: [16, 18] + rollup: [3, 4] + exclude: + - rollup: 3 + node: 18 + - rollup: 4 + node: 16 runs-on: ${{ matrix.os }} - name: rollup plugin ${{ matrix.os }} nodejs ${{ matrix.node }} + name: rollup ${{ matrix.rollup}} plugin nodejs ${{ matrix.node }} steps: - uses: actions/checkout@v4 @@ -285,12 +291,18 @@ jobs: with: name: local-registry - - name: Install dependencies + - name: Install verdaccio run: npm install -g verdaccio - name: Run local npm registry run: ./scripts/local-registry.sh & + - name: Install test dependencies + run: | + npm install --force + npm install --no-save --force rollup@${{ matrix.rollup }} + working-directory: packages/rollup-plugin/test/package + - name: Test package run: npm run test:package working-directory: packages/rollup-plugin diff --git a/packages/rollup-plugin/package.json b/packages/rollup-plugin/package.json index 2108e0a663..5aad51a8e0 100644 --- a/packages/rollup-plugin/package.json +++ b/packages/rollup-plugin/package.json @@ -62,6 +62,6 @@ "typescript": "5.1.6" }, "peerDependencies": { - "rollup": "^3.0.0" + "rollup": "^3.0.0 || ^4.0.0" } } diff --git a/packages/rollup-plugin/test/package/package.json b/packages/rollup-plugin/test/package/package.json index ef34e8bbd5..3da053aa1a 100644 --- a/packages/rollup-plugin/test/package/package.json +++ b/packages/rollup-plugin/test/package/package.json @@ -3,13 +3,11 @@ "version": "1.0.0", "scripts": { "build": "rollup -c", - "pretest": "npm install --force", "test": "jest" }, "devDependencies": { "memfs": "4.2.1", "rollup-plugin-bundle-stats": "*", - "rollup": "3.10.1", "jest": "^29.6.1" } }