diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..b0702194 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,25 @@ +name: CI Workflow + +on: pull_request + +jobs: + ci: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Use Node.js 18.13.0 + uses: actions/setup-node@v2 + with: + node-version: '18.13.0' + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Build + run: npm run tsc-check + + - name: Run tests + run: npm test diff --git a/package.json b/package.json index a8a2c284..6929ad6c 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ "test": "vitest", "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", "preview": "vite preview", - "prepare": "husky install" + "prepare": "husky install", + "tsc-check": "tsc --noEmit" }, "dependencies": { "@atlaskit/pragmatic-drag-and-drop": "^1.2.1",