Skip to content

Commit 65196e3

Browse files
committed
Add Windows to the CI OS matrix
1 parent c35d411 commit 65196e3

File tree

9 files changed

+20
-18
lines changed

9 files changed

+20
-18
lines changed

.eslintrc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ module.exports = {
55
extends: ['standard-with-typescript', 'prettier'],
66
parserOptions: {
77
project: [
8-
path.resolve(__dirname, './packages/*/tsconfig.json'),
9-
path.resolve(__dirname, './apps/*/tsconfig.json'),
8+
path.resolve(__dirname, './packages/next-rest-framework/tsconfig.json'),
9+
path.resolve(__dirname, './apps/example/tsconfig.json'),
1010
path.resolve(__dirname, './docs/tsconfig.json')
1111
]
1212
},

.github/workflows/ci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1-
name: "CI"
1+
name: 'CI'
22

33
on:
44
push:
55
branches:
6-
- "**"
6+
- '**'
77

88
jobs:
99
build:
10-
name: "Run CI pipeline"
11-
runs-on: ubuntu-latest
10+
name: 'Run CI pipeline'
1211
strategy:
1312
matrix:
13+
os: [ubuntu-latest, windows-latest]
1414
node: [18, 20]
15+
runs-on: ${{ matrix.os }}
1516
steps:
1617
- uses: actions/checkout@v3
1718
- uses: pnpm/action-setup@v2
@@ -20,7 +21,7 @@ jobs:
2021
- uses: actions/setup-node@v3
2122
with:
2223
node-version: ${{ matrix.node }}
23-
cache: "pnpm"
24+
cache: 'pnpm'
2425
- run: pnpm i --frozen-lockfile
2526
- run: pnpm run ci
2627

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ dist
22
.next
33
coverage
44
.docusaurus
5+
pnpm-lock.yaml

apps/example/next.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/** @type {import('next').NextConfig} */
2-
const nextConfig = {}
2+
const nextConfig = {};
33

4-
module.exports = nextConfig
4+
module.exports = nextConfig;

apps/example/postcss.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
plugins: {
33
tailwindcss: {},
4-
autoprefixer: {},
5-
},
6-
}
4+
autoprefixer: {}
5+
}
6+
};

docs/babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
2+
presets: [require.resolve('@docusaurus/core/lib/babel/preset')]
33
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"build": "pnpm --filter next-rest-framework run build",
77
"test": "pnpm --filter next-rest-framework run test",
88
"test:watch": "pnpm --filter next-rest-framework run test:watch",
9-
"format": "prettier --write '**/*.{ts,json}' && eslint --fix --max-warnings=0 --ext=.ts .",
9+
"format": "prettier --write . && eslint --fix --max-warnings=0 --ext=.ts .",
1010
"lint": "pnpm run -r lint && prettier --check '**/*.{ts,json}' && eslint --max-warnings=0 --ext=.ts . && swagger-cli validate ./apps/example/public/openapi.json",
1111
"ci": "pnpm run build && pnpm run lint && pnpm run test"
1212
},

packages/next-rest-framework/.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module.exports = {
22
rules: {
33
'no-var': 'off'
44
}
5-
}
5+
};

pnpm-workspace.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
packages:
2-
- "packages/*"
3-
- "apps/*"
4-
- "docs"
2+
- 'packages/*'
3+
- 'apps/*'
4+
- 'docs'

0 commit comments

Comments
 (0)