From a46e340c009b8b597627e31dfa182fdde3209cf3 Mon Sep 17 00:00:00 2001 From: Marcus Schiesser Date: Sun, 23 Mar 2025 17:47:31 +0200 Subject: [PATCH] add gh action --- .github/workflows/lint_on_push_or_pull.yml | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/lint_on_push_or_pull.yml diff --git a/.github/workflows/lint_on_push_or_pull.yml b/.github/workflows/lint_on_push_or_pull.yml new file mode 100644 index 0000000..a228224 --- /dev/null +++ b/.github/workflows/lint_on_push_or_pull.yml @@ -0,0 +1,26 @@ +name: Lint on push or pull request + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + cache: 'npm' + - name: Install dependencies + run: npm ci + - name: Run lint + run: npm run lint + - name: Run Prettier + run: npm run format