From 30eebac93eaa2003f8fbf320e8cd7408276e9fa2 Mon Sep 17 00:00:00 2001 From: SkwalExe Date: Tue, 21 May 2024 16:43:49 +0200 Subject: [PATCH] add action to check for linting errors --- .github/workflows/check_linting.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/check_linting.yml diff --git a/.github/workflows/check_linting.yml b/.github/workflows/check_linting.yml new file mode 100644 index 0000000..fc58569 --- /dev/null +++ b/.github/workflows/check_linting.yml @@ -0,0 +1,23 @@ +name: Check linting + +on: + pull_request: + types: [opened, synchronize] + +jobs: + ci: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + # Make sure the actual branch is checked out when running on pull requests + ref: ${{ github.head_ref }} + # This is important to fetch the changes to the previous commit + fetch-depth: 0 + - uses: actions/setup-node@v4 + with: + node-version: 20 + - run: npm install --include=dev + - name: Check linting + run: npm run lint