diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..67f861e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,19 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: "22" + cache: npm + - run: npm ci + - run: npm run build + - run: npm test diff --git a/package.json b/package.json index f87139f..d0ce691 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "scripts": { "build": "tsc -p .", "dev": "tsx bin/jenkins-cli.ts", - "test": "node --test", + "test": "node --import tsx --test 'test/**/*.test.ts' 'test/**/*.test.tsx'", "prepublishOnly": "npm run build" }, "keywords": [