From b9e9d1e0bf8a9c2e78896baad5fd425357f59930 Mon Sep 17 00:00:00 2001 From: Andrii Gavryliuk Date: Tue, 2 Jul 2024 17:37:16 +0200 Subject: [PATCH 1/5] adding linter --- .github/workflows/linter.yml | 50 ++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/linter.yml diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml new file mode 100644 index 00000000..4455c0ca --- /dev/null +++ b/.github/workflows/linter.yml @@ -0,0 +1,50 @@ +--- +################################# +################################# +## Super Linter GitHub Actions ## +################################# +################################# +name: Lint Code Base + +############################# +# Start the job on all push # +############################# +on: + push: + branches-ignore: [main] + # Remove the line above to run when pushing to master + pull_request: + branches: [main] + +############### +# Set the Job # +############### +jobs: + build: + # Name the Job + name: Lint Code Base + # Set the agent to run on + runs-on: ubuntu-latest + + ################## + # Load all steps # + ################## + steps: + ########################## + # Checkout the code base # + ########################## + - name: Checkout Code + uses: actions/checkout@v4 + with: + # Full git history is needed to get a proper + # list of changed files within `super-linter` + fetch-depth: 0 + + ################################ + # Run Linter against code base # + ################################ + - name: Lint Code Base + uses: github/super-linter@v6.6.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + VALIDATE_MARKDOWN: true \ No newline at end of file From 24736bdd3642fb5239c398952324000f281a7d9a Mon Sep 17 00:00:00 2001 From: Andrii Gavryliuk Date: Tue, 2 Jul 2024 17:49:52 +0200 Subject: [PATCH 2/5] using other versiin --- .github/workflows/linter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 4455c0ca..59b8effc 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -44,7 +44,7 @@ jobs: # Run Linter against code base # ################################ - name: Lint Code Base - uses: github/super-linter@v6.6.0 + uses: github/super-linter@v4 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} VALIDATE_MARKDOWN: true \ No newline at end of file From ae3a1fd4d013bdf4e893ba7f33257f47a189c58b Mon Sep 17 00:00:00 2001 From: Andrii Gavryliuk Date: Tue, 2 Jul 2024 17:56:17 +0200 Subject: [PATCH 3/5] new verson of linter --- .github/workflows/linter.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 59b8effc..cdeac4ff 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -44,7 +44,7 @@ jobs: # Run Linter against code base # ################################ - name: Lint Code Base - uses: github/super-linter@v4 + uses: github/super-linter@v6 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - VALIDATE_MARKDOWN: true \ No newline at end of file + VALIDATE_MARKDOWN: false \ No newline at end of file From 26a0e3d337dc155d70f9feda9928e3a7ba1c1fa8 Mon Sep 17 00:00:00 2001 From: Andrii Gavryliuk Date: Tue, 2 Jul 2024 19:07:49 +0200 Subject: [PATCH 4/5] addinganother linter --- .github/workflows/linter.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index cdeac4ff..c87f775a 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -10,9 +10,7 @@ name: Lint Code Base # Start the job on all push # ############################# on: - push: - branches-ignore: [main] - # Remove the line above to run when pushing to master + pull_request: branches: [main] @@ -44,7 +42,8 @@ jobs: # Run Linter against code base # ################################ - name: Lint Code Base - uses: github/super-linter@v6 + uses: super-linter/super-linter@v6.6.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - VALIDATE_MARKDOWN: false \ No newline at end of file + VALIDATE_MARKDOWN: true + VALIDATE_JAVASCRIPT_ES: true \ No newline at end of file From c225d8bdfae29a26be59d5d78eef5967f191d622 Mon Sep 17 00:00:00 2001 From: Andrii Gavryliuk Date: Tue, 2 Jul 2024 19:20:11 +0200 Subject: [PATCH 5/5] disable markdown linter --- .github/workflows/linter.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index c87f775a..a4a040ec 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -45,5 +45,4 @@ jobs: uses: super-linter/super-linter@v6.6.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - VALIDATE_MARKDOWN: true VALIDATE_JAVASCRIPT_ES: true \ No newline at end of file