From 0a9c7002285775660d1bbea5a878ae595a7ec0b3 Mon Sep 17 00:00:00 2001 From: Raphael Date: Sun, 28 Sep 2025 22:09:23 +0200 Subject: [PATCH] ci(lint): adding a github action to check if lint is respected - The github action will check: - If the code can be build - If the code respect the linter --- .github/workflows/lint.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..e62122b --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,37 @@ +name: Build & Linter + +on: + push: + branches: + - "**" + pull_request: + branches: + - "**" + +permissions: + contents: read + +jobs: + name: Build & Lint + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: '20' + cache: 'pnpm' + - name: Setup pnpm + uses: pnpm/action-setup@v3 + with: + version: 8 + run_install: false + - name: Install dependencies with pnpm + run: pnpm --prefix=./src/ install --frozen-lockfile + - name: Check linting + run: pnpm --prefix=./src/ exec eslint . --max-warnings=0 + - name: Build + run: pnpm --prefix=./src/ run build +