From 3afcd50822e543a6249469358a21b8eb75622a96 Mon Sep 17 00:00:00 2001 From: Marco Pasqualetti Date: Fri, 13 Dec 2024 19:16:23 +0100 Subject: [PATCH] ci: add workflow to check format --- .github/workflows/ci.yml | 39 +++++++++++++++++++++++++++++++++++++++ .nvmrc | 1 + package.json | 3 ++- 3 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml create mode 100644 .nvmrc 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" }