diff --git a/.github/actions/prepare/action.yml b/.github/actions/prepare/action.yml new file mode 100644 index 0000000..24ba865 --- /dev/null +++ b/.github/actions/prepare/action.yml @@ -0,0 +1,16 @@ +name: Prepare + +description: Checkout and install dependencies + +runs: + using: composite + steps: + - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 + with: + node-version: 24 + + - uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0 + + - name: Install Dependencies + run: pnpm i --frozen-lockfile + shell: bash diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml new file mode 100644 index 0000000..4bc5268 --- /dev/null +++ b/.github/workflows/checks.yml @@ -0,0 +1,23 @@ +name: Checks + +on: + pull_request: + +jobs: + format: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - name: Prepare + uses: ./.github/actions/prepare + - name: Format + run: pnpm fmt:check + + may-merge: + needs: ["format"] + runs-on: ubuntu-latest + steps: + - name: Cleared for merging + run: echo OK