From 02ff9306326108c6adb0a578118f862cd60a7d72 Mon Sep 17 00:00:00 2001 From: Luis Blanco Date: Fri, 6 Oct 2023 19:44:30 +0400 Subject: [PATCH] Split validate action --- .github/workflows/eslint.yml | 36 ++++++++++++++++++++ .github/workflows/{validate.yml => test.yml} | 5 +-- 2 files changed, 37 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/eslint.yml rename .github/workflows/{validate.yml => test.yml} (90%) diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml new file mode 100644 index 0000000..179b240 --- /dev/null +++ b/.github/workflows/eslint.yml @@ -0,0 +1,36 @@ +name: ESLint + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + Validate: + strategy: + matrix: + os: [ubuntu-20.04] + + runs-on: ${{ matrix.os }} + + steps: + + - name: Fetch Repository + uses: actions/checkout@v3 + with: + persist-credentials: false + + - name: Install Node.js + uses: actions/setup-node@v3 + with: + node-version: 18.16.0 + cache: 'npm' + + - name: Install Modules + run: npm ci + + - name: Run Lint + run: npm run eslint diff --git a/.github/workflows/validate.yml b/.github/workflows/test.yml similarity index 90% rename from .github/workflows/validate.yml rename to .github/workflows/test.yml index 7323ac4..aafdbae 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: Validate +name: Test on: push: @@ -32,9 +32,6 @@ jobs: - name: Install Modules run: npm ci - - name: Run Lint - run: npm run eslint - - name: Run Unit Tests uses: actions/setup-node@v3 with: