From bedfa0dfdb273af596dcd6a25b7563b339108d69 Mon Sep 17 00:00:00 2001 From: Vio Date: Sun, 24 Dec 2023 23:46:28 +0100 Subject: [PATCH] build(rollup-plugin): Test on rollup v 3/4 --- .github/workflows/ci.yml | 20 +++++++++++++++---- .../rollup-plugin/test/package/package.json | 2 -- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c195b46208..12f63378a5 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,14 +291,20 @@ 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 + run: npm run test working-directory: packages/rollup-plugin tests: 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" } }