From 7fb4e8b967e8183d527ff0e18b4739c9ff62dea8 Mon Sep 17 00:00:00 2001 From: romane-ledru Date: Fri, 22 Mar 2024 14:56:56 +0100 Subject: [PATCH] [CI] init: add a lint workflow --- .github/workflows/lint.yaml | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/lint.yaml diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 0000000..756310c --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,38 @@ +name: Lint + +on: + push: + branches: + - main + pull_request: + types: [ opened, synchronize, reopened, ready_for_review ] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + + lint_front: + name: 'Lint Front' + runs-on: ubuntu-latest + timeout-minutes: 15 + # Do not run on WIP or Draft PRs + if: "!github.event.pull_request || (!contains(github.event.pull_request.labels.*.name, 'WIP') && github.event.pull_request.draft == false)" + + steps: + + - name: 'Checkout' + uses: actions/checkout@v3 + + - name: 'Install dependencies' + run: | + make install@integration + + - name: 'ESLint front' + run: | + make lint.eslint@integration + + - name: 'TypeScript check front' + run: | + make lint.tsc@integration \ No newline at end of file