From 056158ce0786ada7364672e526769349b44b9de3 Mon Sep 17 00:00:00 2001 From: innovaker <66737976+innovaker@users.noreply.github.com> Date: Sat, 2 Jan 2021 11:45:53 +0000 Subject: [PATCH] ci: split doc-checks into eslint and prettier Prerequisite of moving prettier to project root. PR: #568 --- .github/workflows/eslint.yml | 23 +++++++++++++++++++ .../{doc-checks.yml => prettier.yml} | 16 +++---------- 2 files changed, 26 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/eslint.yml rename .github/workflows/{doc-checks.yml => prettier.yml} (50%) diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml new file mode 100644 index 00000000..b2c7146f --- /dev/null +++ b/.github/workflows/eslint.yml @@ -0,0 +1,23 @@ +name: ESLint + +on: + push: + paths: + - ".github/workflows/eslint.yml" + - "docs/**" + pull_request: + paths: + - ".github/workflows/eslint.yml" + - "docs/**" + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: bahmutov/npm-install@v1 + with: + working-directory: docs + - name: ESLint + run: npm run lint + working-directory: docs diff --git a/.github/workflows/doc-checks.yml b/.github/workflows/prettier.yml similarity index 50% rename from .github/workflows/doc-checks.yml rename to .github/workflows/prettier.yml index b5b278e9..1b763c88 100644 --- a/.github/workflows/doc-checks.yml +++ b/.github/workflows/prettier.yml @@ -1,26 +1,16 @@ -name: Docs Checks +name: Prettier on: push: paths: - - ".github/workflows/doc-checks.yml" + - ".github/workflows/prettier.yml" - "docs/**" pull_request: paths: - - ".github/workflows/doc-checks.yml" + - ".github/workflows/prettier.yml" - "docs/**" jobs: - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: bahmutov/npm-install@v1 - with: - working-directory: docs - - name: ESLint - run: npm run lint - working-directory: docs prettier: runs-on: ubuntu-latest steps: