Skip to content

Commit

Permalink
minor #110 [CI] Test for lowest and highest dependencies, close #109
Browse files Browse the repository at this point in the history
…(Kocal)

This PR was squashed before being merged into the main branch.

Discussion
----------

[CI] Test for lowest and highest dependencies, close #109

Commits
-------

94faffa [CI] Test for lowest and highest dependencies, close #109
  • Loading branch information
Kocal committed Jan 26, 2025
2 parents 3272aff + 94faffa commit fe9ca0b
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 89 deletions.
3 changes: 1 addition & 2 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"presets": ["@babel/env"],
"plugins": ["@babel/plugin-proposal-class-properties"]
"presets": ["@babel/env"]
}
10 changes: 8 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,23 +56,29 @@ jobs:
echo "The Git workspace is clean. No changes detected."
fi
tests:
name: Tests (Node.js ${{ matrix.node-versions }})
name: Tests (Node.js ${{ matrix.node-versions }}, deps ${{ matrix.dependency-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-versions: [ '18', '20', '22', '23' ]
dependency-version: ['locked', 'highest', 'lowest-direct']
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4

- name: Configure PNPM resolution mode
if: ${{ matrix.dependency-version != 'locked' }}
run: |
pnpm config set resolution-mode ${{ matrix.dependency-version }}
rm -rf pnpm-lock.yaml
- name: Node ${{matrix.node-versions}}
uses: actions/setup-node@v4
with:
node-version: ${{matrix.node-versions}}
cache: 'pnpm'

- name: Install Node.js Dependencies
run: pnpm install
Expand Down
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@

### Features

* Thus having no effects on the `dist/` files, TypeScript `module` is now set to `ESNext`, `moduleResolution` to `NodeNext`, and `target` to `ES2021`, by @Kocal in https://github.com/symfony/stimulus-bridge/pull/99
* Thus having no effects on the `dist/` files, TypeScript `module` is now set to `ESNext`, `moduleResolution` to `NodeNext`, and `target` to `ES2021` by @Kocal in https://github.com/symfony/stimulus-bridge/pull/99
* Upgrade minimum supported `acorn` version to 8.2.0 by @Kocal in https://github.com/symfony/stimulus-bridge/pull/110

### Internal

* [CI] Ensure tests are run under multiple Node.js versions by @Kocal in https://github.com/symfony/stimulus-bridge/pull/94
* [CI] Check for un-built JS dist files by @Kocal in https://github.com/symfony/stimulus-bridge/pull/96
* [CI] Check for un-built JS dist files by, @Kocal in https://github.com/symfony/stimulus-bridge/pull/96
* [CI] Run tests for lowest/locked/highest dependency versions by @Kocal in https://github.com/symfony/stimulus-bridge/pull/111
* Replace ESLint and Prettier by Biome.js by @Kocal in https://github.com/symfony/stimulus-bridge/pull/95
* Migrate from [Rollup](https://rollupjs.org/) to [Rolldown](https://rolldown.rs/) by @Kocal in https://github.com/symfony/stimulus-bridge/pull/99
* Migrate from [Yarn](https://yarnpkg.com/) to [pnpm](https://pnpm.io/) by @Kocal in https://github.com/symfony/stimulus-bridge/pull/108
Expand Down
13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,14 @@
"dependencies": {
"@hotwired/stimulus-webpack-helpers": "^1.0.1",
"@types/webpack-env": "^1.16.4",
"acorn": "^8.0.5",
"acorn": "^8.2.0",
"loader-utils": "^2.0.0",
"schema-utils": "^3.0.0"
},
"devDependencies": {
"@babel/core": "^7.15.8",
"@babel/plugin-proposal-class-properties": "^7.15.8",
"@babel/preset-env": "^7.15.8",
"@babel/preset-typescript": "^7.15.0",
"@babel/core": "^7.22.0",
"@babel/preset-env": "^7.22.0",
"@babel/preset-typescript": "^7.22.0",
"@biomejs/biome": "^1.9.4",
"@hotwired/stimulus": "^3.0",
"@rollup/plugin-typescript": "^12.1.2",
Expand All @@ -41,8 +40,8 @@
"rolldown": "^1.0.0-beta.3",
"tslib": "^2.3.1",
"typescript": "^4.4.4",
"webpack": "^5.11.1",
"webpack-cli": "^4.3.0"
"webpack": "^5.72",
"webpack-cli": "^5.1.4"
},
"resolutions": {
"@types/jest": "^27.0"
Expand Down
138 changes: 62 additions & 76 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fe9ca0b

Please sign in to comment.