From d682273bb07c738a1857e8bc8245838d6fbb16e5 Mon Sep 17 00:00:00 2001 From: Calinator444 Date: Wed, 15 May 2024 17:02:42 +1000 Subject: [PATCH 1/4] =?UTF-8?q?=F0=9F=8E=A8=20Added=20github=20action=20to?= =?UTF-8?q?=20lint=20code=20on=20pull=20request?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/linting.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/linting.yml diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml new file mode 100644 index 00000000..757e0ada --- /dev/null +++ b/.github/workflows/linting.yml @@ -0,0 +1,26 @@ +name: Lint and use prettier +on: + pull_request: + branches: + - main + types: [opened, reopened] +jobs: + run-linters: + name: Run linters + runs-on: ubuntu-latest + steps: + - name: Check out Git repository + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v1 + with: + node-version: 12 + + - name: Install Node.js dependencies + run: npm i node @latest + + - name: run lint + uses: wearerequired/lint-action@v2 + with: + eslint: true From e9aa33a2d98b290fb6d4e9a5af093dd8229d614f Mon Sep 17 00:00:00 2001 From: Calinator444 Date: Tue, 4 Jun 2024 13:14:28 +1000 Subject: [PATCH 2/4] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20Gave=20github=20action?= =?UTF-8?q?=20for=20linting=20code=20an=20appropriate=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/linting.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 757e0ada..9f2f8957 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -1,4 +1,4 @@ -name: Lint and use prettier +name: Lint code on: pull_request: branches: From 14250d4f23134db5c2f9dbff45ea789ac831f368 Mon Sep 17 00:00:00 2001 From: "Caleb Williams [SSW]" <65635198+Calinator444@users.noreply.github.com> Date: Tue, 23 Jul 2024 13:44:41 +1000 Subject: [PATCH 3/4] Update .github/workflows/linting.yml Co-authored-by: Jay Rovacsek --- .github/workflows/linting.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 9f2f8957..4291b54c 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -1,5 +1,6 @@ name: Lint code on: + push: pull_request: branches: - main From 74c583b811997980c9abef262aa1c281bdba1992 Mon Sep 17 00:00:00 2001 From: "Caleb Williams [SSW]" <65635198+Calinator444@users.noreply.github.com> Date: Tue, 23 Jul 2024 13:44:47 +1000 Subject: [PATCH 4/4] Update .github/workflows/linting.yml Co-authored-by: Jay Rovacsek --- .github/workflows/linting.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 4291b54c..7c458945 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v1 with: - node-version: 12 + node-version: 20.x - name: Install Node.js dependencies run: npm i node @latest