Skip to content

Commit

Permalink
ci: fix ci problem (#53)
Browse files Browse the repository at this point in the history
* ci: fix lint problem

* ci: use pnpm

* ci: install pnpm

* ci: build

* ci: build

* fix: ci

* fix: security
  • Loading branch information
9aoy authored Nov 12, 2024
1 parent c54663d commit ef2c70b
Show file tree
Hide file tree
Showing 9 changed files with 6,529 additions and 3,458 deletions.
5 changes: 4 additions & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,17 @@
"deoptimize",
"etag",
"cachable",
"finalhandler"
"finalhandler",
"mrmime",
"corepack"
],
"ignorePaths": [
"CHANGELOG.md",
"package.json",
"dist/**",
"**/__snapshots__/**",
"package-lock.json",
"pnpm-lock.yaml",
"node_modules",
"coverage",
"*.log",
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,17 @@ jobs:
with:
fetch-depth: 0

- name: Install Pnpm
run: corepack enable

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
cache: "pnpm"

- name: Install dependencies
run: npm ci
run: pnpm install

- name: Lint
run: npm run lint
Expand Down Expand Up @@ -78,14 +81,17 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install Pnpm
run: corepack enable

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
cache: "pnpm"

- name: Install dependencies
run: npm ci
run: pnpm install

- name: Run tests for webpack version ${{ matrix.webpack-version }}
run: npm run test:coverage -- --ci
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ app.listen(3000, () => console.log("Example app listening on port 3000!"));

## Options

| Name | Type | Default | Description |
| :---------------------------------------------: | :---------------------------: | :-------------------------------------------: | :------------------------------------------------------------------------------------------------------------------- |
| **[`index`](#index)** | `Boolean\|String` | `index.html` | If `false` (but not `undefined`), the server will not respond to requests to the root URL. |
| **[`publicPath`](#publicpath)** | `String` | `output.publicPath` (from a configuration) | The public path that the middleware is bound to. |
| **[`writeToDisk`](#writetodisk)** | `Boolean\|Function` | `false` | Instructs the module to write files to the configured location on disk as specified in your `webpack` configuration. |
| Name | Type | Default | Description |
| :-------------------------------: | :-----------------: | :----------------------------------------: | :------------------------------------------------------------------------------------------------------------------- |
| **[`index`](#index)** | `Boolean\|String` | `index.html` | If `false` (but not `undefined`), the server will not respond to requests to the root URL. |
| **[`publicPath`](#publicpath)** | `String` | `output.publicPath` (from a configuration) | The public path that the middleware is bound to. |
| **[`writeToDisk`](#writetodisk)** | `Boolean\|Function` | `false` | Instructs the module to write files to the configured location on disk as specified in your `webpack` configuration. |

The middleware accepts an `options` Object. The following is a property reference for the Object.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"packageManager": "[email protected]",
"scripts": {
"commitlint": "commitlint --from=master",
"security": "npm audit --production",
"security": "pnpm audit --production",
"lint:prettier": "prettier --cache --list-different .",
"lint:js": "eslint --cache .",
"lint:spelling": "cspell --cache --no-must-find-files --quiet \"**/*.*\"",
Expand Down
Loading

0 comments on commit ef2c70b

Please sign in to comment.