From b7cc1565abd9288f3c6880b535e286fb43af1b02 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 4 Sep 2024 09:49:17 +0200 Subject: [PATCH] add action --- .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