From 47f8796aa3908f47e10d3cc650ee78e5f8fe10ac Mon Sep 17 00:00:00 2001 From: THIVEND Date: Sat, 9 Apr 2022 16:28:50 +0200 Subject: [PATCH] Add frontend linting --- .github/workflows/frontend_lint.yml | 33 +++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/frontend_lint.yml diff --git a/.github/workflows/frontend_lint.yml b/.github/workflows/frontend_lint.yml new file mode 100644 index 0000000..728d2c0 --- /dev/null +++ b/.github/workflows/frontend_lint.yml @@ -0,0 +1,33 @@ +# This workflow will install Python dependencies, run tests and lint with a variety of Python versions +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: "[CI] Frontend / Lint" + +on: + push: + branches: [ master ] + pull_request: + +jobs: + frontend_lint: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2.0.0 + with: + fetch-depth: 1 + + - uses: pnpm/action-setup@v2.1.0 + with: + version: 6.0.2 + working-directory: ./frontend + + - name: Install dependencies + working-directory: ./frontend + run: | + pnpm install + + - name: Lint + working-directory: ./frontend + run: | + pnpm run lint \ No newline at end of file