Skip to content

Commit 2914745

Browse files
authored
Removed husky and added CI (#315)
1 parent be34718 commit 2914745

File tree

4 files changed

+56
-16
lines changed

4 files changed

+56
-16
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ['main']
6+
pull_request:
7+
branches: ['main']
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
node-version: [20.x, 22.x]
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Install pnpm
22+
uses: pnpm/action-setup@v4
23+
with:
24+
run_install: false
25+
26+
- name: Use Node.js ${{ matrix.node-version }}
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: ${{ matrix.node-version }}
30+
cache: 'pnpm'
31+
32+
- run: pnpm install --frozen-lockfile
33+
- run: pnpm test

.husky/pre-commit

Lines changed: 0 additions & 2 deletions
This file was deleted.

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@
55
"description": "A thin layer between JS and WebGPU/WGSL that improves development experience and allows for faster iteration.",
66
"license": "MIT",
77
"scripts": {
8-
"prepare": "husky",
98
"dev": "EXPERIMENTAL=true pnpm -r dev:build && EXPERIMENTAL=true pnpm --parallel -r dev:watch",
109
"dev:test": "vitest",
1110
"check": "biome check --write .",
1211
"coverage": "vitest --coverage",
13-
"test": "pnpm run '/^test:.*/'",
12+
"test": "EXPERIMENTAL=true pnpm -r dev:build && pnpm run '/^test:.*/'",
1413
"test:types": "pnpm run -r test:types",
1514
"test:spec": "vitest run"
1615
},
@@ -29,7 +28,11 @@
2928
"type": "git",
3029
"url": "git+https://github.com/software-mansion/TypeGPU.git"
3130
},
32-
"keywords": ["webgpu", "wgpu", "wgsl"],
31+
"keywords": [
32+
"webgpu",
33+
"wgpu",
34+
"wgsl"
35+
],
3336
"bugs": {
3437
"url": "https://github.com/software-mansion/TypeGPU/issues"
3538
},
@@ -40,7 +43,6 @@
4043
"@vitest/coverage-v8": "0.33.0",
4144
"@vitest/ui": "0.33.0",
4245
"dpdm": "^3.14.0",
43-
"husky": "^9.0.11",
4446
"jsdom": "^24.0.0",
4547
"prettier": "^3.2.4",
4648
"tsup": "^8.0.2",

pnpm-lock.yaml

Lines changed: 17 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)