From b46473ff42cdf39551b4da64f2f4a100ea05dbee Mon Sep 17 00:00:00 2001 From: hopperelec Date: Fri, 10 Nov 2023 17:50:39 +0000 Subject: [PATCH] Split eslint and stylelint into two different jobs --- .github/workflows/linting.yml | 26 +++++++++++++++----------- .github/workflows/prettier.yml | 2 +- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 7c202b4..a0e4057 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -6,16 +6,20 @@ on: pull_request: jobs: - linting: + setup: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 20 + cache: npm + - run: npm ci + eslint: + needs: setup runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 20 - cache: npm - - run: npm ci - - name: eslint - run: npm run eslint - - name: stylelint - run: npm run stylelint + - run: npm run eslint + stylelint: + needs: setup + runs-on: ubuntu-latest + steps: + - run: npm run stylelint diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index 938c421..d095c4d 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -6,7 +6,7 @@ on: pull_request: jobs: - format-check: + prettier: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3