From 2708eeda8694dfc8f914860ce83f289aa8aca03c Mon Sep 17 00:00:00 2001 From: Denis Bogdanenko Date: Tue, 28 Nov 2023 19:41:24 +0300 Subject: [PATCH] v3(chore): refactor workflow --- .github/workflows/eslint.yml | 14 ------------ .github/workflows/pull_request_guard.yml | 28 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 14 deletions(-) delete mode 100644 .github/workflows/eslint.yml create mode 100644 .github/workflows/pull_request_guard.yml diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml deleted file mode 100644 index 4dea62e..0000000 --- a/.github/workflows/eslint.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: ESLint -on: [pull_request] - -jobs: - eslint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - uses: ./.github/workflows/yarn - - - uses: Maggi64/eslint-plus-action@master - with: - npmInstall: false diff --git a/.github/workflows/pull_request_guard.yml b/.github/workflows/pull_request_guard.yml new file mode 100644 index 0000000..8277bf4 --- /dev/null +++ b/.github/workflows/pull_request_guard.yml @@ -0,0 +1,28 @@ +name: Pull Request Guard +on: [pull_request] + +jobs: + eslint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - uses: ./.github/workflows/yarn + + - uses: Maggi64/eslint-plus-action@master + with: + npmInstall: false + + build: + needs: eslint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - uses: ./.github/workflows/yarn + + - name: Install Peer + run: yarn add wavesurfer.js + + - name: Build + run: yarn build