From 1563e0efffb6d6f9aee9dc640c3cebf011871483 Mon Sep 17 00:00:00 2001 From: Refringe Date: Tue, 7 May 2024 21:21:49 -0400 Subject: [PATCH] Updates Lint/Style Workflows - Updates the messaging on the listing workflow. - Removes the old style workflow. --- .gitea/workflows/run-lint.yaml | 3 +- .gitea/workflows/run-style.yaml | 59 --------------------------------- 2 files changed, 2 insertions(+), 60 deletions(-) delete mode 100644 .gitea/workflows/run-style.yaml diff --git a/.gitea/workflows/run-lint.yaml b/.gitea/workflows/run-lint.yaml index 4870b564..fabc8634 100644 --- a/.gitea/workflows/run-lint.yaml +++ b/.gitea/workflows/run-lint.yaml @@ -53,6 +53,7 @@ jobs: - name: Fix Instructions if: failure() && steps.run-tests.outcome == 'failure' run: | - echo -e "Code linting has failed. The linter has been configured to look for coding errors, defects, and questionable patterns. Please look into resolving these errors. The linter may be able to resolve some of these issues automatically. You can launch the automatic fixer by running the following command from within the 'project' directory. Anything not resolved by running this command must be resolved manually.\n\nnpm run lint:fix\n" + echo -e "Code linting has failed. The linter has been configured to look for coding errors, defects, questionable patterns, and code formatting issues. Please look into resolving these errors. The linter may be able to resolve some of these issues automatically. You can launch the automatic fixer by running the following command from within the 'project' directory. Anything not resolved by running this command must be resolved manually.\n\nnpm run lint:fix\n" + echo -e "To automatically format code on-save in your IDE, please install the recommended VSCode plugins listed within the 'project/Server.code-workspace' file.\n" echo -e "Consistency is professionalism.™" shell: bash diff --git a/.gitea/workflows/run-style.yaml b/.gitea/workflows/run-style.yaml deleted file mode 100644 index cdc20708..00000000 --- a/.gitea/workflows/run-style.yaml +++ /dev/null @@ -1,59 +0,0 @@ -name: Check Code Style - -on: - push: - branches: '*' - pull_request: - branches: '*' - -jobs: - dprint: - runs-on: ubuntu-latest - container: - image: refringe/spt-build-node:1.0.7 - steps: - - name: Clone - run: | - rm -rf /workspace/SPT-AKI/Build/server - git clone https://dev.sp-tarkov.com/${GITHUB_REPOSITORY}.git --branch master /workspace/SPT-AKI/Build/server - - cd /workspace/SPT-AKI/Build/server - git checkout ${GITHUB_SHA} - shell: bash - - - name: Pull LFS Files - run: | - cd /workspace/SPT-AKI/Build/server - git lfs pull - git lfs ls-files - shell: bash - - - name: Cache NPM Dependencies - id: cache-npm-dependencies - uses: actions/cache@v4 - with: - path: /workspace/SPT-AKI/Build/server/project/node_modules - key: npm-dependencies-${{ hashFiles('/workspace/SPT-AKI/Build/server/project/package.json') }} - - - name: Install NPM Dependencies - if: steps.cache-npm-dependencies.outputs.cache-hit != 'true' - run: | - cd /workspace/SPT-AKI/Build/server/project - rm -rf node_modules - npm install - shell: bash - - - name: Check Code Style - id: check-code-style - run: | - cd /workspace/SPT-AKI/Build/server/project - npm run style - shell: bash - - - name: Fix Instructions - if: failure() && steps.check-code-style.outcome == 'failure' - run: | - echo -e "The code style check has failed. To fix this, please ensure your code adheres to the project's style guidelines. You can automatically format the project code by running the following command from within the 'project' directory.\n\nnpm run style:fix\n" - echo -e "To automatically format code on-save in your IDE, please install the recommended VSCode plugins listed within the 'project/Server.code-workspace' file.\n" - echo -e "Thank you for keeping our house clean. ♥" - shell: bash