From 0c617d685582130b271210b1ab00b7a5dfcfc12a Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 4 Sep 2024 09:57:53 +0200 Subject: [PATCH] add action for pull requests (#152) Closes #151 Reviewed-on: https://git.mylloon.fr/ConfrerieDuKassoulait/Botanique/pulls/152 Co-authored-by: Mylloon Co-committed-by: Mylloon --- .forgejo/workflows/pr-lint-format.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .forgejo/workflows/pr-lint-format.yml diff --git a/.forgejo/workflows/pr-lint-format.yml b/.forgejo/workflows/pr-lint-format.yml new file mode 100644 index 0000000..05a8ddc --- /dev/null +++ b/.forgejo/workflows/pr-lint-format.yml @@ -0,0 +1,20 @@ +name: Lint and Format Check + +on: + pull_request: + branches: [main, dev] + +jobs: + lint-and-format: + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install dependencies + run: npm install + + - name: Run lint + run: npm run lint + + - name: Run format check + run: npm run format-check