diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..f203af6 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,23 @@ +name: Unit Testing +on: + push: +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [18] + steps: + - uses: actions/checkout@v3 + - uses: pnpm/action-setup@v2 + with: + version: 8 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'pnpm' + - name: Install dependencies + run: pnpm install + - name: Run tests + run: pnpm test diff --git a/package.json b/package.json index bff572f..3cb769a 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,6 @@ "main": "dist/browser-detection.js", "type": "module", "scripts": { - "prepare": "npm run build", "start": "vite", "build": "tsc && vite build", "lint": "eslint src/**/* --ext .ts",