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