diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..0a28f3c --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,33 @@ +name: Tests +on: [push, pull_request] +jobs: + tsc: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 18 + + - name: Setup pnpm + uses: pnpm/action-setup@v3 + + - name: test:style + run: pnpm run test:style + + - name: test:lint + run: pnpm run test:lint + + - name: test:types + run: pnpm run test:types + + - name: test:jest + run: pnpm run test:jest + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.0.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/package.json b/package.json index d1963a5..5feb407 100644 --- a/package.json +++ b/package.json @@ -48,5 +48,7 @@ "prettier": "^3.2.5", "ts-jest": "^29.1.2", "typescript": "^5.4.3" - } + }, + "packageManager": "pnpm@8.15.0" } +