Skip to content

Commit

Permalink
switch between v9 and v8
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDome committed Dec 18, 2024
1 parent 32e1527 commit 24b3e60
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions build-and-test-with-yarn/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,15 @@ runs:
id: checkEsLint
run: |
FILE=${{ inputs.eslint-configuration-file }}
ESLINT_V5_FILE=eslint.config.mjs
if [ -f "$FILE" ] || [ -f "$ESLINT_V5_FILE" ]
ESLINT_V9_FILE=eslint.config.mjs
if [ -f "$FILE" ]
then
echo "runEslint=true" >> "$GITHUB_OUTPUT"
fi
if [ -f "$ESLINT_V9_FILE" ]
then
echo "runEslintV9=true" >> "$GITHUB_OUTPUT"
fi
working-directory: ./
shell: bash

Expand All @@ -186,6 +190,18 @@ runs:
shell: bash
run: npx eslint --ext ${{ inputs.eslint-ext-patterns }} --output-file eslint_report.json --format json .


- name: ESlint v9
if: steps.yarn-deps.outputs.no-yarn != 'true' && steps.checkEsLint.outputs.runEslintV9 == 'true'
shell: bash
run: |
npx eslint .
- name: ESlint v9 Annotate
if: steps.yarn-deps.outputs.no-yarn != 'true' && steps.checkEsLint.outputs.runEslintV9 == 'true'
shell: bash
run: npx eslint --output-file eslint_report.json --format json .

- name: Have files changed?
id: check_files_changed
uses: actions/github-script@v6
Expand Down

0 comments on commit 24b3e60

Please sign in to comment.