Skip to content

Commit

Permalink
build(rollup-plugin): Test on rollup v 3/4
Browse files Browse the repository at this point in the history
  • Loading branch information
vio committed Dec 26, 2023
1 parent 3318f8d commit bedfa0d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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:
Expand Down
2 changes: 0 additions & 2 deletions packages/rollup-plugin/test/package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit bedfa0d

Please sign in to comment.