diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..da1ee7803 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,39 @@ +name: CI + +on: + push: + branches: + - "master" + pull_request: + branches: + - "master" + +env: + HUSKY: 0 + +jobs: + ci: + name: CI + runs-on: ubuntu-latest + timeout-minutes: 15 + + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Setup pnpm + uses: pnpm/action-setup@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version-file: ".nvmrc" + cache: "pnpm" + + - name: Install Dependencies + shell: bash + run: pnpm install --frozen-lockfile + + - name: Format + run: | + pnpm run format diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 000000000..f812e4592 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +20.18.1 \ No newline at end of file diff --git a/package.json b/package.json index 6a205b4f3..925ccbd74 100644 --- a/package.json +++ b/package.json @@ -70,5 +70,6 @@ "*.{ts,tsx,mdx,css,json}": [ "pnpm run format:fix" ] - } + }, + "packageManager": "pnpm@9.15.0+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c" }