From fb7b58bbaed50ad9f394ff94785b87ec44308db2 Mon Sep 17 00:00:00 2001 From: RubenPX Date: Wed, 20 Apr 2022 12:04:18 +0200 Subject: [PATCH] Change order steps --- .github/workflows/eslint.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index 02bc4c5f..6113c185 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -25,6 +25,16 @@ jobs: node-version: '16' - name: Install dependencies run: npm install + - name: Run linters + uses: wearerequired/lint-action@v1 + with: + eslint: true + prettier: false + commit_message: "Fix code style issues with ${linter}" + auto_fix: true + commit: true + github_token: "${{ secrets.GITHUB_TOKEN }}" + git_name: "Lint Action" - name: Save Code Linting Report JSON # npm script for ESLint # eslint --output-file eslint_report.json --format json src @@ -37,16 +47,6 @@ jobs: with: repo-token: "${{ secrets.GITHUB_TOKEN }}" report-json: "eslint_report.json" - - name: Run linters - uses: wearerequired/lint-action@v1 - with: - eslint: true - prettier: false - commit_message: "Fix code style issues with ${linter}" - auto_fix: true - commit: true - github_token: "${{ secrets.GITHUB_TOKEN }}" - git_name: "Lint Action" - name: Upload ESLint report uses: actions/upload-artifact@v2 with: