From e251b5926906f5f7ce79824a048f4c9ba3aca2f0 Mon Sep 17 00:00:00 2001 From: Elson Otake Date: Fri, 16 Oct 2026 16:04:15 -0300 Subject: [PATCH] fix linters workflow --- .github/workflows/linters.yml | 33 +++++++++++---------------------- .stylelintrc.json | 32 -------------------------------- 2 files changed, 11 insertions(+), 54 deletions(-) delete mode 100644 .stylelintrc.json diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index e24c9992..14127c32 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -8,37 +8,26 @@ env: jobs: rubocop: name: Rubocop - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: actions/setup-ruby@v1 with: - ruby-version: 3.1.x + ruby-version: "3.4" - name: Setup Rubocop run: | - gem install --no-document rubocop -v '>= 1.0, < 2.0' # https://docs.rubocop.org/en/stable/installation/ - [ -f .rubocop.yml ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/ror/.rubocop.yml + gem install --no-document rubocop -v '>= 1.0, < 2.0' - name: Rubocop Report run: rubocop --color - stylelint: - name: Stylelint - runs-on: ubuntu-22.04 - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - with: - node-version: "12.x" - - name: Setup Stylelint - run: | - npm install --save-dev stylelint@13.x stylelint-scss@3.x stylelint-config-standard@21.x stylelint-csstree-validator@1.x - [ -f .stylelintrc.json ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/ror/.stylelintrc.json - - name: Stylelint Report - run: npx stylelint "**/*.{css,scss}" nodechecker: name: node_modules checker - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Check node_modules existence run: | - if [ -d "node_modules/" ]; then echo -e "\e[1;31mThe node_modules/ folder was pushed to the repo. Please remove it from the GitHub repository and try again."; echo -e "\e[1;32mYou can set up a .gitignore file with this folder included on it to prevent this from happening in the future." && exit 1; fi \ No newline at end of file + if [ -d "node_modules/" ]; then + echo -e "\e[1;31mThe node_modules/ folder was pushed to the repo. Please remove it from the GitHub repository and try again." + echo -e "\e[1;32mYou can set up a .gitignore file with this folder included on it to prevent this from happening in the future." + exit 1 + fi diff --git a/.stylelintrc.json b/.stylelintrc.json deleted file mode 100644 index 5fa8628c..00000000 --- a/.stylelintrc.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "extends": ["stylelint-config-standard"], - "plugins": ["stylelint-scss", "stylelint-csstree-validator"], - "rules": { - "at-rule-no-unknown": [ - true, - { - "ignoreAtRules": [ - "tailwind", - "apply", - "variants", - "responsive", - "screen" - ] - } - ], - "scss/at-rule-no-unknown": [ - true, - { - "ignoreAtRules": [ - "tailwind", - "apply", - "variants", - "responsive", - "screen" - ] - } - ], - "csstree/validator": true - }, - "ignoreFiles": ["build/**", "dist/**", "**/reset*.css", "**/bootstrap*.css"] -} \ No newline at end of file