From 2150cbc7fbc08ed1e85589aa8783bf07fee375a7 Mon Sep 17 00:00:00 2001 From: Chamlai <31847168+VeiveHata@users.noreply.github.com> Date: Wed, 2 Oct 2024 17:03:14 +0200 Subject: [PATCH] Create lint-job.yml --- .github/workflows/lint-job.yml | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/lint-job.yml diff --git a/.github/workflows/lint-job.yml b/.github/workflows/lint-job.yml new file mode 100644 index 0000000..36c7446 --- /dev/null +++ b/.github/workflows/lint-job.yml @@ -0,0 +1,36 @@ +on: + workflow_call: + inputs: + branch_name: + required: true + type: string + +permissions: + checks: write + contents: write + +jobs: + run-linters: + name: Run linters + runs-on: ubuntu-latest + + steps: + - name: Check out Git repository + uses: actions/checkout@v4 + + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: 9.4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 20.12 + cache: 'pnpm' + + - name: Install Node.js dependencies + run: pnpm install + + - name: Run linters + run: pnpm lint