Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): do unit tests on windows too #255

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 5 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ jobs:
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Install Node.js
uses: actions/setup-node@v3
with:
Expand All @@ -27,20 +25,21 @@ jobs:
- name: Run tests
run: pnpm test
short:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 20
- 18
name: Node.js ${{ matrix.node-version }} Quick
os:
- ubuntu-latest
- windows-latest
runs-on: ${{ matrix.os }}
name: Node.js ${{ matrix.node-version }} Quick on ${{ matrix.os }}
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"test:lint": "eslint .",
"test:converage": "c8 pnpm unit",
"test": "pnpm run /^test:/",
"unit": "node --test test/*.test.js",
"unit": "node --test **/*.test.js",
"docs": "jsdoc2md src/*.js > DOCS.md",
"clean": "npx rimraf ./coverage"
},
Expand Down Expand Up @@ -105,5 +105,6 @@
"Fran莽ois Wouts"
],
"repository": "postcss/postcss-load-config",
"license": "MIT"
"license": "MIT",
"packageManager": "pnpm@8.11.0"
}